This commit is contained in:
Bastian Wagner
2026-07-15 15:19:15 +02:00
parent 59319a09b8
commit a79988b35c
8 changed files with 48 additions and 14 deletions

View File

@@ -4,11 +4,48 @@ server {
root /usr/share/nginx/html;
index index.html;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
location = /config.js {
add_header Cache-Control "no-store";
try_files $uri =404;
}
location /.well-known/ {
proxy_pass http://127.0.0.1:3000;
}
location /oidc/ {
proxy_pass http://127.0.0.1:3000;
}
location /interaction/ {
proxy_pass http://127.0.0.1:3000;
}
location /auth/ {
proxy_pass http://127.0.0.1:3000;
}
location /account/ {
proxy_pass http://127.0.0.1:3000;
}
location /admin/ {
proxy_pass http://127.0.0.1:3000;
}
location /password/ {
proxy_pass http://127.0.0.1:3000;
}
location /registration/ {
proxy_pass http://127.0.0.1:3000;
}
location / {
try_files $uri $uri/ /index.html;
}

View File

@@ -3,7 +3,7 @@ set -eu
cat >/usr/share/nginx/html/config.js <<EOF
window.__LDAP_PORTAL_CONFIG__ = {
apiBaseUrl: "${API_BASE_URL:-http://localhost:3000}"
apiBaseUrl: "${API_BASE_URL:-}"
};
EOF