diff --git a/README.md b/README.md index 1695c26..773c79b 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ python3 -m venv venv # → http://127.0.0.1:5000 ``` -Die App lauscht auf dem lokalen HTTP-Port (default `127.0.0.1:5000`, +Die App lauscht auf dem lokalen HTTP-Port (default `127.0.0.1:8085`, überschreibbar via `HOST`/`PORT`). Ein vertrauenswürdiger Reverse Proxy (nginx, caddy, …) beendet HTTPS und reicht intern an die App weiter. Die App selbst muss von außen nicht erreichbar sein. diff --git a/deploy/crushdb.service b/deploy/crushdb.service index c6f28a4..3b68167 100644 --- a/deploy/crushdb.service +++ b/deploy/crushdb.service @@ -20,7 +20,7 @@ Group=jonas WorkingDirectory=/srv/crushdb ExecStart=/srv/crushdb/venv/bin/python /srv/crushdb/run.py Environment=HOST=127.0.0.1 -Environment=PORT=5000 +Environment=PORT=8085 Restart=on-failure RestartSec=3 diff --git a/run.py b/run.py index 1e66fc0..503de51 100644 --- a/run.py +++ b/run.py @@ -16,7 +16,7 @@ def main(): storage.init_db() host = os.environ.get("HOST", "127.0.0.1") - port = int(os.environ.get("PORT", "5000")) + port = int(os.environ.get("PORT", "8085")) app.run(host=host, port=port)