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>
47 lines
1.8 KiB
Bash
47 lines
1.8 KiB
Bash
# Copy to .env and adjust. All server settings are controlled from here -
|
|
# docker compose renders them into the .conf files at container start.
|
|
|
|
# --- Database -----------------------------------------------------------
|
|
DB_NAME=ktrose
|
|
DB_USER=rose
|
|
DB_PASSWORD=change_me
|
|
|
|
# --- Public address -------------------------------------------------------
|
|
# The address game clients connect to. For a LAN-only server this can stay
|
|
# 127.0.0.1 / the LAN IP; for an internet-exposed server this MUST be the
|
|
# public IP or DNS name of this host, otherwise clients won't be able to
|
|
# reach the char/world server after the login server hands them off.
|
|
PUBLIC_HOST=127.0.0.1
|
|
|
|
# --- Ports (published to the host) ----------------------------------------
|
|
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
|
|
CHAR_SERVER_NAME=Server 1
|
|
WORLD_CHANNEL_NAME=Channel 1
|
|
WORLD_WELCOME_MSG=Welcome to ROSS
|
|
|
|
# --- Gameplay knobs ---------------------------------------------------------
|
|
WORLD_MAX_CONNECTIONS=500
|
|
WORLD_SAVE_TIME=3600
|
|
CHAR_DELETE_TIME=3600
|
|
LOGIN_CREATE_ACCOUNT=1
|
|
|
|
# --- Inter-server auth (must just be consistent across the 3 servers) -------
|
|
SHARED_LOGIN_PASS=789456
|
|
SHARED_CHAR_PASS=456123
|
|
SHARED_WORLD_PASS=321654
|
|
|
|
# --- Web admin panel (http://<host>/admin/) ----------------------------------
|
|
# Logs in with an existing game account; only accounts with
|
|
# accesslevel >= ADMIN_MIN_ACCESSLEVEL are allowed in.
|
|
# Generate your own with: python3 -c "import secrets; print(secrets.token_hex(32))"
|
|
ADMIN_SECRET_KEY=change-me-to-a-random-value
|
|
ADMIN_MIN_ACCESSLEVEL=900
|