From 505b1839dd0d8727d6494f0015501d152ca42ff20faa1ad2b39eddf35e4f6b15 Mon Sep 17 00:00:00 2001 From: jhkaktus Date: Sun, 11 Oct 2026 00:11:19 +0200 Subject: [PATCH] chore: default port 8085 (app + service unit), README aligned MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit User's proxy expects the upstream on port 8085; defaults are aligned across run.py, the systemd unit and the docs. 🤖 Generated with Codebuff Co-Authored-By: Codebuff --- README.md | 2 +- deploy/crushdb.service | 2 +- run.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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)