Make webtools host port configurable via WEBTOOLS_PORT
Port 80 on the host isn't always free (e.g. another service already bound to it), so let .env override it like the game server ports already do. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
1 parent
1998bf4273
commit
0884cab294
3 files changed
+5
-2
No files matched your search
@@ -17,6 +17,9 @@ PUBLIC_HOST=127.0.0.1
|
||||
LOGIN_PORT=29000
|
||||
CHAR_PORT=29100
|
||||
WORLD_PORT=29200
|
||||
# Web tools + admin panel (http://<host>:<this port>/). Change this if port 80
|
||||
# is already taken by something else on the host.
|
||||
WEBTOOLS_PORT=80
|
||||
|
||||
# --- Server / channel naming -----------------------------------------------
|
||||
LOGIN_SERVER_NAME=ROSE Login
|
||||
|
||||
@@ -31,7 +31,7 @@ That brings up:
|
||||
| `loginserver` | `ross-loginserver-1` | `29000` | Account login |
|
||||
| `charserver` | `ross-charserver-1` | `29100` | Character select/create/delete |
|
||||
| `worldserver` | `ross-worldserver-1` | `29200` | The actual game world |
|
||||
| `webtools` | `ross-webtools-1` | `80` | Static GM toolbox (see below) + reverse-proxies `/admin/` |
|
||||
| `webtools` | `ross-webtools-1` | `80` (`WEBTOOLS_PORT`) | Static GM toolbox (see below) + reverse-proxies `/admin/` |
|
||||
| `webadmin` | `ross-webadmin-1` | — (behind webtools) | Account/character/server admin panel |
|
||||
|
||||
Point a KTRose pre-evo client at `PUBLIC_HOST:29000` and log in — `LOGIN_CREATE_ACCOUNT=1` (the default) auto-creates an
|
||||
|
||||
+1
-1
@@ -85,7 +85,7 @@ services:
|
||||
image: nginx:alpine
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- "80:80"
|
||||
- "${WEBTOOLS_PORT:-80}:80"
|
||||
volumes:
|
||||
- "./webtools:/usr/share/nginx/html:ro"
|
||||
- "./docker/conf/webtools-nginx.conf:/etc/nginx/conf.d/default.conf:ro"
|
||||
|
||||
Reference in new issue
Block a user