# Configuration Nginx pour l'interface web principale # nginx-web.conf server { listen 80; server_name web-sentinel.taaazzz-prog.fr; root /usr/share/nginx/html; index index.html; # Single Page Application location / { try_files $uri $uri/ /index.html; } # API Proxy (si nécessaire) location /api/ { proxy_pass http://web-sentinel-api:5000/api/; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; } # Sécurité add_header X-Frame-Options "SAMEORIGIN" always; add_header X-Content-Type-Options "nosniff" always; add_header X-XSS-Protection "1; mode=block" always; add_header Referrer-Policy "strict-origin-when-cross-origin" always; # Cache location ~* \.(css|js|png|jpg|jpeg|gif|ico|svg)$ { expires 1y; add_header Cache-Control "public, immutable"; } }