#!/bin/sh # Generiert /usr/share/nginx/html/runtime-config.js aus ENV-Variablen # Wird beim Container-Start ausgefuehrt cat > /usr/share/nginx/html/runtime-config.js << EOF window.__RMM_CONFIG__ = { backendHost: "${BACKEND_HOST:-localhost}", backendPort: "${BACKEND_PORT:-8443}", apiKey: "${API_KEY:-}" }; EOF exec nginx -g "daemon off;"