10 lines
152 B
Bash
10 lines
152 B
Bash
#!/bin/sh
|
|
|
|
cat <<EOF > /usr/share/nginx/html/env.js
|
|
window.ENV = {
|
|
API_BASE: "${API_BASE:-http://localhost:8000}"
|
|
};
|
|
EOF
|
|
|
|
exec nginx -g "daemon off;"
|