mirror of
https://github.com/johndoe6345789/goodpackagerepo.git
synced 2026-04-24 13:54:59 +00:00
37 lines
900 B
JSON
37 lines
900 B
JSON
{
|
|
"name": "my_upstream",
|
|
"description": "Configuration for upstream repository proxy",
|
|
"base_url": "https://registry.example.com",
|
|
"auth": {
|
|
"mode": "bearer_token",
|
|
"description": "Authentication mode: none, basic, bearer_token, api_key",
|
|
"token_env": "UPSTREAM_TOKEN",
|
|
"alternatives": {
|
|
"basic": {
|
|
"username": "user",
|
|
"password_env": "UPSTREAM_PASSWORD"
|
|
},
|
|
"api_key": {
|
|
"header": "X-API-Key",
|
|
"key_env": "UPSTREAM_API_KEY"
|
|
}
|
|
}
|
|
},
|
|
"timeouts_ms": {
|
|
"connect": 2000,
|
|
"read": 10000,
|
|
"description": "Connection timeout: 2s, Read timeout: 10s"
|
|
},
|
|
"retry": {
|
|
"max_attempts": 2,
|
|
"backoff_ms": 200,
|
|
"exponential": true,
|
|
"description": "Retry up to 2 times with exponential backoff"
|
|
},
|
|
"health_check": {
|
|
"enabled": true,
|
|
"endpoint": "/health",
|
|
"interval_seconds": 60
|
|
}
|
|
}
|