30 lines
877 B
Plaintext
30 lines
877 B
Plaintext
server {
|
|
listen 80;
|
|
server_name portal.hoelee.com localhost;
|
|
|
|
# Basic security headers
|
|
add_header X-Content-Type-Options "nosniff" always;
|
|
add_header X-Frame-Options "DENY" always;
|
|
add_header Referrer-Policy "strict-origin-when-cross-origin" always;
|
|
|
|
# Precision 410 Gone for legacy SuiteDash open redirect / shortlink / QR paths
|
|
location ~* ^/(qr|r|login|auth|dashboard)(/|$) {
|
|
default_type text/plain;
|
|
return 410 "410 Gone: This resource has been permanently retired and decommissioned.\n";
|
|
}
|
|
|
|
# Healthcheck endpoint for Docker / Portainer
|
|
location /healthz {
|
|
access_log off;
|
|
default_type text/plain;
|
|
return 200 "ok\n";
|
|
}
|
|
|
|
# Root and static content
|
|
location / {
|
|
root /usr/share/nginx/html;
|
|
index index.html;
|
|
try_files $uri $uri/ /index.html =404;
|
|
}
|
|
}
|