# Required startup settings.
GATEWAY_REDIS_MASTER_ADDR=127.0.0.1:6379
GATEWAY_REDIS_PASSWORD=changeme
GATEWAY_RESPONSE_SIGNER_PRIVATE_KEY_PEM_PATH=./secrets/response-signer.pem

# Backend (consolidated) endpoint.
GATEWAY_BACKEND_HTTP_URL=http://127.0.0.1:8080
GATEWAY_BACKEND_GRPC_PUSH_URL=127.0.0.1:8081
GATEWAY_BACKEND_GATEWAY_CLIENT_ID=gateway-local-1

# Main listeners.
GATEWAY_PUBLIC_HTTP_ADDR=127.0.0.1:8080
GATEWAY_AUTHENTICATED_GRPC_ADDR=127.0.0.1:9090

# Optional admin listener.
# GATEWAY_ADMIN_HTTP_ADDR=127.0.0.1:9091

# Optional Redis tuning. Stage 6.2 dropped the session-cache projection and
# the two Redis Streams; Redis is now used only for anti-replay reservations.
# GATEWAY_REDIS_REPLICA_ADDRS=127.0.0.1:6479,127.0.0.1:6480
# GATEWAY_REDIS_DB=0
# GATEWAY_REDIS_OPERATION_TIMEOUT=250ms
# GATEWAY_REPLAY_REDIS_KEY_PREFIX=gateway:replay:

# Optional backend tuning.
# GATEWAY_BACKEND_HTTP_TIMEOUT=5s
# GATEWAY_BACKEND_PUSH_RECONNECT_BASE_BACKOFF=250ms
# GATEWAY_BACKEND_PUSH_RECONNECT_MAX_BACKOFF=30s

# Optional shutdown and telemetry tuning.
# GATEWAY_SHUTDOWN_TIMEOUT=5s
# GATEWAY_LOG_LEVEL=info
# OTEL_TRACES_EXPORTER=none
