feat: support access-key protected admin

This commit is contained in:
2026-06-30 21:06:20 +08:00
parent d90a1cd94f
commit c8cc3b153b
+4
View File
@@ -205,6 +205,10 @@ function buildProfileConfig({ profileName, profileEnv, existingGatewayConfig, pr
"stream disconnected before completion: Concurrency limit exceeded for account, please retry later",
],
),
management_access_key:
profileEnv.CODEX_RETRY_GATEWAY_MANAGEMENT_ACCESS_KEY ||
existingGatewayConfig?.management_access_key ||
"",
upstream_fetch_retry_attempts: profileEnv.CODEX_RETRY_GATEWAY_UPSTREAM_FETCH_RETRY_ATTEMPTS
? Number.parseInt(`${profileEnv.CODEX_RETRY_GATEWAY_UPSTREAM_FETCH_RETRY_ATTEMPTS}`, 10)
: Number.parseInt(`${existingGatewayConfig?.upstream_fetch_retry_attempts || 5}`, 10),