SHA256
chore: default port 8085 (app + service unit), README aligned
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 <noreply@codebuff.com>
This commit is contained in:
@@ -17,7 +17,7 @@ python3 -m venv venv
|
|||||||
# → http://127.0.0.1:5000
|
# → 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
|
überschreibbar via `HOST`/`PORT`). Ein vertrauenswürdiger Reverse Proxy
|
||||||
(nginx, caddy, …) beendet HTTPS und reicht intern an die App weiter.
|
(nginx, caddy, …) beendet HTTPS und reicht intern an die App weiter.
|
||||||
Die App selbst muss von außen nicht erreichbar sein.
|
Die App selbst muss von außen nicht erreichbar sein.
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ Group=jonas
|
|||||||
WorkingDirectory=/srv/crushdb
|
WorkingDirectory=/srv/crushdb
|
||||||
ExecStart=/srv/crushdb/venv/bin/python /srv/crushdb/run.py
|
ExecStart=/srv/crushdb/venv/bin/python /srv/crushdb/run.py
|
||||||
Environment=HOST=127.0.0.1
|
Environment=HOST=127.0.0.1
|
||||||
Environment=PORT=5000
|
Environment=PORT=8085
|
||||||
|
|
||||||
Restart=on-failure
|
Restart=on-failure
|
||||||
RestartSec=3
|
RestartSec=3
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ def main():
|
|||||||
storage.init_db()
|
storage.init_db()
|
||||||
|
|
||||||
host = os.environ.get("HOST", "127.0.0.1")
|
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)
|
app.run(host=host, port=port)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user