# Elorasmus configuration. Copy to .env (git-ignored), then `chmod 600 .env`. # Every variable is optional; the values below are the defaults. # ---- network (compose) ---- # Host interface and port the container is published on. Loopback = only this machine # (use a reverse proxy, VPN or `ssh -L` to reach it). 0.0.0.0 = all interfaces. ELORASMUS_BIND=127.0.0.1 ELORASMUS_PORT=8317 # ---- login ---- # Password (min 8 chars) to require a login. Empty = no login (fine on loopback/VPN only). AUTH_PASSWORD= # Signs session cookies (min 32 chars). Empty = generated once, stored in the data volume. SESSION_SECRET= # How long a login lasts, in days. SESSION_DAYS=180 # Secure cookie flag: auto (when the request arrived over HTTPS) | true | false COOKIE_SECURE=auto # true when running behind a reverse proxy that sets X-Forwarded-For/-Proto/-Host. TRUST_PROXY=false # ---- app ---- # Serve under a sub-path, e.g. /elorasmus/, if your proxy routes a path to the app. BASE_PATH=/ APP_TITLE=Elorasmus # Default stay length (months) for cost totals; changeable in the app's settings. STAY_MONTHS=5 # Elo: starting rating; K-factor for a school's first games (max) decaying to (min). ELO_INITIAL=1500 ELO_K_MAX=48 ELO_K_MIN=16 # EUR->CZK rate for the CZK display. Empty = the CNB rate stored with the research data. EUR_CZK= # Log one line per request (method, path, status, time). No cookies or bodies are logged. LOG_REQUESTS=false