Harden Rust backend deployment

This commit is contained in:
2026-05-29 21:56:12 +01:00
parent aef2113198
commit 7100f9c8e8
6 changed files with 133 additions and 60 deletions
+3 -1
View File
@@ -6,6 +6,8 @@ It reads two SQLite databases:
- `TSS_BATTLES_DB` for `tss_battles.db`
- `TSS_TEAMS_DB` for `tss_teams.db`
- `BACKEND_HOST` bind host, default `127.0.0.1`
- `BACKEND_ALLOWED_ORIGINS` comma-separated browser origins allowed by CORS
Both paths can be absolute or relative to the repo root when run through the root scripts/PM2.
@@ -25,7 +27,7 @@ It currently exposes:
npm run dev:backend
```
The backend listens on <http://localhost:6000> by default. Override with `BACKEND_PORT`.
The backend listens on <http://127.0.0.1:6000> by default. Override with `BACKEND_PORT` and `BACKEND_HOST`.
## Production build