MC/website/ops/cp-v2-entry.nginx.conf
2026-11-27 23:43:05 +00:00

21 lines
829 B
Text

# Inline into the CP TLS server so the blue/green promoter updates the fallback
# upstream together with the other CP routes. Substitute the active CP port.
location = / {
auth_request /_cp_v2_owner_check;
error_page 401 403 = @cp_signin_entry;
root /var/lib/dunerealms-cp-v2/current;
try_files /index.html =404;
default_type text/html;
add_header Cache-Control "private, no-store" always;
add_header X-Content-Type-Options nosniff always;
add_header Referrer-Policy no-referrer always;
add_header Strict-Transport-Security "max-age=15552000" always;
}
location @cp_signin_entry {
proxy_pass http://127.0.0.1:3103;
proxy_http_version 1.1;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-Proto https;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}