From c2ca789dc3744eea929749c39cbf24ddb8939b0e Mon Sep 17 00:00:00 2001 From: Brandon Nguyen <58405975+Bratah123@users.noreply.github.com> Date: Tue, 7 Jul 2026 20:38:46 -0700 Subject: [PATCH] Update README.md --- deploy/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/deploy/README.md b/deploy/README.md index 6b110bb..469ef38 100644 --- a/deploy/README.md +++ b/deploy/README.md @@ -16,7 +16,7 @@ client ──HTTP :8000──> nginx (cache + range) ──> Python asset server Run the Python server on 8001 so nginx can own the public port: ```bash -SPIRIT_HTTP_PORT=8001 SPIRIT_PUBLIC_HOST=YOUR_VPS_IP python -m spirit.main +sudo SPIRIT_HTTP_PORT=8001 SPIRIT_PUBLIC_HOST=YOUR_VPS_IP bash ./run.sh ``` `AssetURL` is built from the client's `Host` header, so it keeps resolving to @@ -33,7 +33,7 @@ sudo mkdir -p /var/cache/spirit_assets && sudo chown www-data:www-data /var/cach sudo nginx -t && sudo systemctl reload nginx ``` -Then start the game server on 8001 (command above). Firewall: open `8000` (nginx) +Then start the game server on 8001 (**command above**). Firewall: open `8000` (nginx) and `39389` (TCP game server); keep `8001` closed — nginx reaches Python over loopback. ### Caddy (simpler; streams robustly, but response caching needs the Souin plugin)