init: portal.hoelee.com security sandbox & decommission stack
This commit is contained in:
commit
d0ada9d34b
5 files changed
+254
No files matched your search
@@ -0,0 +1,29 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user