# Every variable the server reads. In production these are set by the main # site's docker-compose.yml (see README.md); for standalone development, # docker-compose.yml here sets what it needs. # --- Core ------------------------------------------------------------------- # URL prefix everything is served under. The SPA is built for /usaco. BASE_PATH= # The clone lives in $DATA_DIR/repo (default /data). DATA_DIR= # Listen port (default 8080). PORT= # "true" enables gin debug logging, and is required for AUTH_MODE=dev. DEV_MODE= # --- Git -------------------------------------------------------------------- # What to clone. Production: http://gitea:3000/adamf/usaco.git (Gitea on the # Docker network). Required. GIT_REMOTE_URL= # Default main. GIT_BRANCH= # HTTP credentials: a Gitea access token with read and write on the repo. # Given to git through GIT_ASKPASS, never written into .git/config. # GIT_USER defaults to adamf. GIT_USER= GIT_TOKEN= # Who the site's commits are by. Defaults: "usaco site" / usaco@adam-french.co.uk. GIT_AUTHOR_NAME= GIT_AUTHOR_EMAIL= # "false" keeps edits as local commits (development). Default true. GIT_PUSH= # Fallback pull interval, a Go duration. Default 10m; the webhook is the # normal trigger. PULL_INTERVAL= # Shared secret of the Gitea push webhook. Blank turns the hook off. WEBHOOK_SECRET= # --- Auth ------------------------------------------------------------------- # "forward" (default): ask the main site's backend. "dev": admit everyone. AUTH_MODE= # The site backend's validate-admin route, on the Docker network # (default http://backend:8080/auth/validate-admin). AUTH_VALIDATE_URL=