ligbox-ops-platform/specs/019-ops-console-active-operations/deploy/nginx/default.conf
Ligbox Spec Hub c1881f58e6 chore: sync Console SSO, DNS viewer, specs e infra docs pendentes
Inclui console handoff Desk↔Console (Spec 019), melhorias DNS Viewer (037),
OpenPanel/Nextcloud/VM116 deploy notes, contracts stack e sidebar actualizado.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-25 20:10:17 +00:00

36 lines
882 B
Text

server {
listen 80;
server_name _;
root /usr/share/nginx/html;
index index.html;
# Health — Docker healthcheck + Traefik
location = /health {
access_log off;
default_type text/plain;
return 200 "ok\n";
}
gzip on;
gzip_types text/css application/javascript application/json image/svg+xml;
gzip_min_length 256;
location /assets/ {
expires 7d;
add_header Cache-Control "public, immutable";
}
location = /index.html {
add_header Cache-Control "no-cache, must-revalidate";
}
# SPA — React Router
location / {
try_files $uri $uri/ /index.html;
}
# Segurança básica
add_header X-Frame-Options "SAMEORIGIN" always;
add_header X-Content-Type-Options "nosniff" always;
add_header Referrer-Policy "strict-origin-when-cross-origin" always;
}