feat: add --aigateway-proxy-target flag (#27122)

Adds `--aigateway-proxy-target` option to
`deploymentGroupAIGatewayProxy` that defines URL to which intercepted
requests should be forwarded to.
Forward URL used to be hardcoded to `coderAPI.AccessURL` pointing to
embedded Gateway. With addition of standalone AI Gateway this needs to
be configurable.

Renamed `aibridgeproxyd.Server.coderAccessURL` and `coderAccessPort` ->
`gatewayURL` and `gatewayPort` + option to better reflect reality.
This commit is contained in:
Paweł Banaszewski
2026-07-14 16:40:22 +00:00
committed by GitHub
parent a567f6a89f
commit 3126306598
18 changed files with 478 additions and 269 deletions
+10
View File
@@ -1987,6 +1987,16 @@ Enable the AI Gateway MITM Proxy for intercepting and decrypting AI provider req
The address the AI Gateway Proxy will listen on.
### --ai-gateway-proxy-target
| | |
|-------------|---------------------------------------------|
| Type | <code>string</code> |
| Environment | <code>$CODER_AI_GATEWAY_PROXY_TARGET</code> |
| YAML | <code>ai_gateway_proxy.target</code> |
Base URL of the AI Gateway to forward intercepted requests to. Defaults to the embedded AI Gateway address at the Coder access URL plus /api/v2/ai-gateway.
### --ai-gateway-proxy-tls-cert-file
| | |