# GCoordinator v1.1.0 — Example Environment Configuration # Copy this file to `.env` or run `./scripts/setup.sh` to generate `.env` and # `docker/secrets/gcoord_master_key.txt` automatically. # IMPORTANT: Keep `.env` private (`chmod 600 .env`) and never commit it. # --------------------------------------------------------------------------- # Deployment Mode (used by ./scripts/setup.sh, build.sh, up.sh, down.sh, etc.) # --------------------------------------------------------------------------- # `lan`: binds ports on GCOORD_LAN_BIND via docker/docker-compose.lan.yml and # disables the cloudflared sidecar and TRUST_CLOUDFLARE. # `cloudflare`: exposes no host ports and routes ingress through cloudflared. GCOORD_DEPLOY_MODE=lan # --------------------------------------------------------------------------- # Resource & Throttling Profile (tuned for 1 vCPU / 1 GB RAM + 2 GB Swap) # --------------------------------------------------------------------------- # Runtime throttle profile: `low-resource` | `balanced` | `unthrottled` # Switch to `balanced` or `unthrottled` on multi-core / higher-RAM hosts. GCOORD_THROTTLE_MODE=low-resource # Docker container RAM ceiling and Node.js V8 heap limit (MB) GCOORD_MEM_LIMIT=512m GCOORD_NODE_MAX_OLD_SPACE=384 GCOORD_PIDS_LIMIT=128 # --------------------------------------------------------------------------- # Network, Ports & LAN Mode # --------------------------------------------------------------------------- # Host bind address in LAN mode (`127.0.0.1` recommended behind local Caddy/Nginx, # or `0.0.0.0` / your WireGuard/LAN IP for direct LAN reachability). GCOORD_LAN_BIND=127.0.0.1 GCOORD_HTTP_PORT=3000 GCOORD_TUNNEL_PORT_RANGE=20000-20020 # Set `true` only if you want SSH local/remote TCP tunnels to bind non-loopback GCOORD_ALLOW_LAN_TUNNELS=false # Container internal listen address/port (rarely needs changing) # PORT=3000 # HOST=0.0.0.0 # --------------------------------------------------------------------------- # Cloudflare Tunnel & Reverse Proxy Trust # --------------------------------------------------------------------------- # Required when GCOORD_DEPLOY_MODE=cloudflare CLOUDFLARED_TUNNEL_TOKEN= # Override proxy header trust (defaults: `true` in Cloudflare mode, `false` in LAN mode) # TRUST_CLOUDFLARE=true # Comma-separated CIDR allowlist of trusted upstream reverse proxies # TRUSTED_PROXY_CIDRS=172.16.0.0/12,10.0.0.0/8 # --------------------------------------------------------------------------- # Origin-Isolated Reverse Proxy Tunnels (v1.1) # --------------------------------------------------------------------------- # Dedicated local port for origin-isolated HTTP/WS reverse-proxy tunnels # (isolated cookies/storage via /proxy-ticket). Also published by LAN compose. # GCOORD_PROXY_PORT=3001 # Alternative wildcard subdomain base host for origin-isolated proxy tunnels # GCOORD_PROXY_BASE_DOMAIN=proxy.example.com # --------------------------------------------------------------------------- # Vault, Database & Backup Secrets # --------------------------------------------------------------------------- # Primary Docker method mounts `docker/secrets/gcoord_master_key.txt` at # `/run/secrets/gcoord_master_key` (created with 0600 perms by `./scripts/setup.sh`). # Non-Docker / local fallback variables: # GCOORD_MASTER_KEY= # GCOORD_MASTER_KEY_FILE=/run/secrets/gcoord_master_key # Optional 64-hex-char (32-byte) key encrypting TOTP secrets at rest in SQLite # (auto-generated at `data/db.key` if omitted). # GCOORD_DB_KEY= # Mirror env/secret Vault master key to `data/vault.key` (`0600`) when set `true` # GCOORD_AUTO_KEYFILE=false # Optional passphrase for `gcoord` CLI backup/verify-backup/restore commands # GCOORD_BACKUP_PASSPHRASE= # --------------------------------------------------------------------------- # Optional WebAuthn, Prometheus & Local Path Overrides # --------------------------------------------------------------------------- # Explicit WebAuthn Relying Party ID and allowed origins (for custom proxy domains) # GCOORD_WEBAUTHN_RP_ID=hub.example.com # GCOORD_WEBAUTHN_ORIGINS=https://hub.example.com # Optional Bearer token override for opt-in Prometheus `GET /metrics` # GCOORD_METRICS_TOKEN= # Persistent state path (set to `/data` inside Docker; defaults to `./data` locally) # GCOORD_DATA_DIR=./data