Files
x0gp/server/.env.example

31 lines
988 B
Bash

# Copy this file to `.env` and fill in real values. The server reads
# `.env` from the current working directory on startup; missing file
# is fine (production sets vars via the process env / orchestrator).
#
# DATABASE_URL is required. Format:
# postgres://USER:PASSWORD@HOST:PORT/DBNAME?sslmode=disable
#
# Examples:
# postgres://x0gp:x0gp@localhost:5432/x0gp?sslmode=disable
# postgres://x0gp:x0gp@postgres:5432/x0gp?sslmode=disable (inside compose)
DATABASE_URL=postgres://x0gp:x0gp@localhost:5432/x0gp?sslmode=disable
# HTTP server.
X0GP_HTTP_ADDR=:8080
X0GP_LOG_LEVEL=info
# Race engine.
X0GP_TICK_RATE=60
X0GP_SNAPSHOT_RATE=30
X0GP_MAX_CLIENTS=100
X0GP_SEED_RACES=0
X0GP_SEED_RESET=0
# Optional: override path(s) to dotenv files (colon-separated).
# X0GP_DOTENV=.env:./configs/local.env
# PoC: skip auth, allow multiple clients on the same track.
X0GP_DEV_MODE=true
# Optional: override path(s) to dotenv files (colon-separated).
# X0GP_DOTENV=.env:./configs/local.env