Files
The-transit-Project/admin_ui/docker-entrypoint.sh
T
Sven laptop a091ef9c37 added api variable
Co-authored-by: Copilot <copilot@github.com>
2026-05-06 14:30:11 +02:00

12 lines
225 B
Bash
Executable File

#!/bin/sh
set -e
cat > /usr/share/nginx/html/env-config.js <<EOF
window.__ENV__ = {
AUTH_API: "${AUTH_API:-http://localhost:5000}",
TRANSIT_API: "${TRANSIT_API:-http://localhost:5001}"
}
EOF
exec nginx -g 'daemon off;'