server { listen 80 default_server; server_name _; root /usr/share/nginx/html; index index.html; # Securite minimale server_tokens off; 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; # Cache court pour pouvoir iterer rapidement sur la page (1h) location / { try_files $uri $uri/ /index.html; add_header Cache-Control "public, max-age=3600, must-revalidate"; } # Logo : cache plus long (1 jour) location ~* \.(png|jpg|svg|ico)$ { expires 1d; add_header Cache-Control "public, max-age=86400"; } # Endpoint healthcheck simple location = /healthz { access_log off; return 200 "ok\n"; add_header Content-Type text/plain; } }