Files
antigravity-claude-proxy/config.example.json
quocthai0404 54fc1da829 fix: make OAuth callback port configurable for Windows compatibility (#176)
- Add OAUTH_CALLBACK_PORT environment variable (default: 51121)
- Implement automatic port fallback (51122-51126) on EACCES/EADDRINUSE
- Add Windows-specific troubleshooting in error messages and README
- Document configuration in config.example.json

Closes #176
2026-01-24 14:28:31 +07:00

61 lines
1.8 KiB
JSON

{
"_comment": "Antigravity Claude Proxy Configuration",
"_instructions": [
"HOW TO USE THIS FILE:",
"1. Copy to your HOME directory: ~/.config/antigravity-proxy/config.json",
" - Windows: C:\\Users\\<username>\\.config\\antigravity-proxy\\config.json",
" - macOS/Linux: ~/.config/antigravity-proxy/config.json",
"2. Or copy to project root as 'config.json' (fallback if home config not found)",
"",
"NOTE: Environment variables (e.g., WEBUI_PASSWORD) take precedence over file config",
"Restart server after making changes"
],
"apiKey": "",
"_apiKey_comment": "Optional API key to protect /v1/* endpoints. Can also use API_KEY env var.",
"webuiPassword": "",
"_webuiPassword_comment": "Optional password to protect WebUI. Can also use WEBUI_PASSWORD env var.",
"port": 8080,
"debug": false,
"logLevel": "info",
"maxRetries": 5,
"retryBaseMs": 1000,
"retryMaxMs": 30000,
"defaultCooldownMs": 60000,
"maxWaitBeforeErrorMs": 120000,
"tokenCacheTtlMs": 300000,
"persistTokenCache": false,
"requestTimeoutMs": 300000,
"maxAccounts": 10,
"_maxAccounts_comment": "Maximum number of Google accounts allowed (1-100). Default: 10.",
"_oauthCallbackPort_comment": "OAuth callback server port. Change if you get EACCES errors on Windows. Can also use OAUTH_CALLBACK_PORT env var. Default: 51121.",
"_oauthCallbackPort_env": "OAUTH_CALLBACK_PORT=3456",
"_profiles": {
"development": {
"debug": true,
"logLevel": "debug",
"maxRetries": 3
},
"production": {
"debug": false,
"logLevel": "info",
"maxRetries": 5,
"persistTokenCache": true
},
"high-performance": {
"maxRetries": 10,
"retryMaxMs": 60000,
"tokenCacheTtlMs": 600000
}
}
}