Amend API URL

This commit is contained in:
2025-07-17 14:29:10 +02:00
parent bff0b35c5f
commit b3e4f76b18
4 changed files with 12 additions and 18 deletions

View File

@@ -1,15 +1,13 @@
#!/bin/sh
set -e
: "${API_HOST:=http://localhost}"
: "${API_PORT:=80}"
# Create runtime config file in writable location
cat > /runtime-config/config.js <<EOF
window.__APP_CONFIG__ = {
API_HOST: "${API_HOST}",
API_PORT: "${API_PORT}"
};
EOF
#cat > /runtime-config/config.js <<EOF
#window.__APP_CONFIG__ = {
# API_HOST: "${API_HOST}",
# API_PORT: "${API_PORT}"
#};
#EOF
# Generate nginx config from template (if using)
if [ -f "/etc/nginx/templates/nginx.conf.template" ]; then