a091ef9c37
Co-authored-by: Copilot <copilot@github.com>
12 lines
225 B
Bash
Executable File
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;'
|