All settings are configured through environment variables in the .env file.
Required Settings
| Variable | Description | Example |
GC_ADMIN_PASSWORD | Admin password | MySecureP@ss! |
GC_WG_HOST | Public IP or domain for WireGuard | vpn.example.com |
GC_BASE_URL | Full URL of the web interface | https://gate.example.com |
WireGuard Settings
| Variable | Default | Description |
GC_WG_PORT | 51820 | WireGuard listen port |
GC_WG_SUBNET | 10.8.0.0/24 | VPN subnet |
GC_WG_DNS | 1.1.1.1,8.8.8.8 | DNS servers for clients |
Security
| Variable | Default | Description |
GC_RATE_LIMIT_LOGIN | 5 | Max login attempts per 15 min |
GC_RATE_LIMIT_API | 100 | Max API requests per 15 min |
GC_SESSION_MAX_AGE | 86400000 | Session duration in ms (24h) |