File size: 385 Bytes
8bff983
 
 
 
 
 
 
 
 
b6079be
37e12f1
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/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