.env.example
Set these on your host before deploying. Each platform has an “Environment Variables” section in the deploy flow. (showing first 20, more exist in .env.example)
UPSTREAM_BASE_URL
UPSTREAM_API_KEY
secret
UPSTREAM_API_KEY_HEADER
secret
UPSTREAM_API_KEY_PREFIX
secret
Keep the trailing space after Bearer. Set this to empty for raw-key headers.
PROXY_PORT
LISTEN_PROTOCOL
OUTBOUND_PROXY
TRANSPORT_MODE
INTERCEPT_HOST
INTERCEPT_PATHS
MITM_CERT_DIR_HOST
WEBSOCKET_FIRST_MESSAGE_TIMEOUT_SECONDS
WEBSOCKET_IDLE_TIMEOUT_SECONDS
WEBSOCKET_PROCESSED_TIMEOUT_SECONDS
WEBSOCKET_SEND_RESPONSE_PROCESSED
WEBSOCKET_CONNECTOR
WEBSOCKET_RUST_WORKER_PATH
WEBSOCKET_POOL_ENABLED
WEBSOCKET_POOL_MAX_IDLE
WEBSOCKET_POOL_IDLE_TIMEOUT_SECONDS
brew install flyctl && fly launch --from https://github.com/mucsbr/codex-reset-proxy
curl -L https://fly.io/install.sh | sh && fly launch --from https://github.com/mucsbr/codex-reset-proxy
iwr https://fly.io/install.ps1 -useb | iex; fly launch --from https://github.com/mucsbr/codex-reset-proxy