Files
aleksey 83d516afa1
CI / build-gateway (push) Successful in 27s
CI / sync-config (push) Successful in 1s
feat(ift): EventHub AI Router stack for Zed
FastAPI gateway with A/B/C lane orchestration, LiteLLM proxy config,
Swarm stack (postgres, redis, VPN off-by-default), deploy/smoke/audit scripts.
2026-08-07 22:06:41 +03:00

18 lines
391 B
Bash

#!/bin/sh
set -eu
read_secret() {
if [ -f "$1" ]; then
tr -d '\n\r' < "$1"
fi
}
if [ -f /run/secrets/litellm_master_key ]; then
export LITELLM_MASTER_KEY="$(read_secret /run/secrets/litellm_master_key)"
fi
if [ -f /run/secrets/router_api_key ]; then
export ROUTER_API_KEY="$(read_secret /run/secrets/router_api_key)"
fi
exec uvicorn router:app --host 0.0.0.0 --port 8000 "$@"