diff --git a/.env.example b/.env.example index f129573..23b3d29 100644 --- a/.env.example +++ b/.env.example @@ -17,6 +17,9 @@ PUBLIC_HOST=127.0.0.1 LOGIN_PORT=29000 CHAR_PORT=29100 WORLD_PORT=29200 +# Web tools + admin panel (http://:/). 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 diff --git a/README.md b/README.md index 20749bd..185a1c2 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/docker-compose.yml b/docker-compose.yml index 0a765db..840785b 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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"