Skip to content

Commit

Permalink
Fix: do not use localhost (#468)
Browse files Browse the repository at this point in the history
  • Loading branch information
MHHukiewitz authored Sep 4, 2023
1 parent 913e007 commit 71cf823
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion alembic.ini
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ version_path_separator = os # Use os.pathsep. Default configuration used for ne
# are written from script.py.mako
# output_encoding = utf-8

sqlalchemy.url = driver://user:pass@localhost/dbname
sqlalchemy.url = driver://user:pass@127.0.0.1/dbname


[post_write_hooks]
Expand Down
4 changes: 2 additions & 2 deletions deployment/docker-build/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ binancechain:
packing_node: False

mongodb:
uri: "mongodb://localhost:27017"
uri: "mongodb://127.0.0.1:27017"
database: aleph

storage:
Expand All @@ -31,7 +31,7 @@ storage:

ipfs:
enabled: True
host: localhost
host: 127.0.0.1
port: 5001
gateway_port: 8080

Expand Down
4 changes: 2 additions & 2 deletions docs/guides/install.rst
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ You should see the following three containers with a State of "Up":
Check the metrics
------------------

Check that messages are being processed by the node by looking on the metric endpoint, by default http://localhost:4024/metrics .
Check that messages are being processed by the node by looking on the metric endpoint, by default http://127.0.0.1:4024/metrics .

The number of messages should change when you refresh the page, starting with the variable pyaleph_status_sync_pending_messages_total

Expand All @@ -202,7 +202,7 @@ You can use `docker-compose logs` and `docker logs` for this purpose.
Check IPFS
----------

IPFS Web UI: http://localhost:5001/webui
IPFS Web UI: http://127.0.0.1:5001/webui

.. warning::
This web interface is only accessible on localhost in the default Docker Compose configuration.
Expand Down
2 changes: 1 addition & 1 deletion src/aleph/api_entrypoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,4 +88,4 @@ async def create_app() -> web.Application:

if __name__ == "__main__":
import asyncio
web.run_app(create_app(), host="localhost", port=8000)
web.run_app(create_app(), host="127.0.0.1", port=8000)
4 changes: 2 additions & 2 deletions src/aleph/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,8 @@ def get_defaults():
"pool_size": 50,
},
"mail": {
"email_sender": "aleph@localhost.localdomain",
"smtp_url": "smtp://localhost",
"email_sender": "aleph@127.0.0.1.localdomain",
"smtp_url": "smtp://127.0.0.1",
},
"ipfs": {
"enabled": True,
Expand Down

0 comments on commit 71cf823

Please sign in to comment.