# etadm's arguments (etadm serve --help lists them all). The game itself (mod, port,
# masters) is in /etc/default/et. After a change:
#   systemctl restart etadm        (restarts the game: players are dropped)
#
# etadm's defaults are this install's layout: ET: Legacy's engine, /usr/lib/et
# (fs_basepath), /var/lib/et (fs_homepath), Omni-Bot in /usr/lib/et/omni-bot.

# Web UI and API on port 8080, from any address.
# --insecure-cookie: the login cookie also goes over plain HTTP, fit for a LAN. Behind an
# HTTPS reverse proxy (nginx, caddy), remove it and listen on 127.0.0.1:8080 only.
# UI logins: /etc/etadm/users (runuser -u et -- etadm passwd <login>).
# API token (scripts, Authorization: Bearer): /etc/etadm/token, created at install.
ETADM_WEB="--listen 0.0.0.0:8080 --insecure-cookie --users-file /etc/etadm/users --token-file /etc/etadm/token"

# Anything else, empty by default:
# - Masters listing checked (ET_HEARTBEAT=1 in /etc/default/et, or behind etrelay):
#   --public-addr <public ip>:<port>.
# - etrelay (the server behind a relay on another machine, which heartbeats for it, with
#   ET_HEARTBEAT=0): --public-addr <relay ip>:27960. The relay itself is set from the UI
#   (Relay page, kept in /etc/etadm/relay), or --relay-url http://<relay tunnel
#   address>:8090 --relay-token-file /etc/etadm/relay-token. etadm registers the game
#   there on the public port of --public-addr (--relay-port for another one), then reads
#   real player addresses and bans there; its key is kept in /etc/etadm/relay-key.
ETADM_EXTRA=""
