Configuration

All configuration is read from environment variables (Pydantic Settings). The container honours the variables below; the Helm chart surfaces the common ones and passes anything else through extraEnv. Log-export variables live on the Log Export / SIEM page.

Core

Variable Default Description
PORT80Listening port
DEBUGfalseDebug logging, serves /docs, and bypasses admin auth
API_URLhttps://api.roboflow.comUpstream API server
REPO_URLhttps://repo.roboflow.comUpstream repository server
REQUEST_TIMEOUT30Connect/pool timeout (s) — not a total cap on streamed bodies
STREAMING_IDLE_TIMEOUT600Per-chunk idle timeout (s) for multi-GB transfers
WORKERS0Uvicorn workers (0 = one per CPU core)
EXTRA_PROXY_HOSTSComma-separated extra domains for the /proxy allowlist

Cache

Behaviour and tiers are covered in Caching.

Variable Default Description
CACHE_ENABLEDtrueMaster switch for the response cache
CACHE_DIRECTORY/var/cache/secure-gatewayDisk path (ignored when S3 is set)
CACHE_MAX_SIZE_GB50Disk cache cap before eviction
CACHE_FREE_DISK_BUFFER_GB5Free space the gateway always keeps available
CACHE_MAX_ENTRY_SIZE_MB2048Skip caching responses larger than this
CACHE_ADMIN_TOKENBearer token for /_cache/* and /_logs/*
CACHE_S3_BUCKETS3 bucket; set this to switch from disk to S3
CACHE_S3_PREFIXcache/Key prefix within the bucket
CACHE_S3_REGIONautoBucket region
CACHE_S3_ENDPOINT_URLCustom endpoint for MinIO / GCS / R2
CACHE_S3_ACCESS_KEY / _SECRET_KEYStatic keys; empty = use IAM/instance role

TLS

Usage and the upstream-vs-in-pod decision are covered in TLS & Certificates.

Variable Default Description
TLS_CERT_FILECertificate for inbound HTTPS (with TLS_KEY_FILE, serves HTTPS on PORT)
TLS_KEY_FILEPrivate key for inbound HTTPS
TLS_CA_BUNDLECustom CA bundle for outbound trust (Zscaler, corporate TLS proxy)