This commit is contained in:
Bastian Wagner
2026-07-15 14:31:56 +02:00
parent 3e5348b7ec
commit 0fd85573d2
11 changed files with 128 additions and 14 deletions

View File

@@ -0,0 +1,24 @@
#!/bin/sh
set -eu
cat >/usr/share/nginx/html/config.js <<EOF
window.__LDAP_PORTAL_CONFIG__ = {
apiBaseUrl: "${API_BASE_URL:-http://localhost:3000}"
};
EOF
node /app/api/main.js &
api_pid="$!"
nginx -g "daemon off;" &
nginx_pid="$!"
term() {
kill "$api_pid" "$nginx_pid" 2>/dev/null || true
wait "$api_pid" "$nginx_pid" 2>/dev/null || true
}
trap term INT TERM
wait -n "$api_pid" "$nginx_pid"
term