#!/usr/bin/env bash set -euo pipefail RAW_USERS="${BASIC_AUTH_USERS:-}" if [[ -z "${RAW_USERS}" ]]; then echo "[ERROR] BASIC_AUTH_USERS is required. Use one 'username:password' per line." >&2 exit 1 fi echo "[INFO] Starting gateway on :7860" cd / && exec /opt/gateway/bin/uvicorn gateway:app \ --app-dir /src \ --host 0.0.0.0 --port 7860 --workers 1 --log-level info