ligbox-ops-platform/specs/019-ops-console-active-operations/deploy/nginx/default.conf
Ligbox Spec Hub 3a2c64834b Initial import: ligbox-ops-platform + specs + LAPTOP + obsidian merge (CT130)
Source: VM122 /opt + obsidian-infra + LAPTOP
Hub: CT130 spec-hub 10.10.10.130
2026-06-19 17:26:41 +00:00

32 lines
784 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";
}
# 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;
}