# Site statique {{ app_statique_application.nom }} — genere par Set-OPS (role app_statique). Ne pas editer. # Source : {{ app_statique_application.source }} a {{ app_statique_application.version }} ({{ app_statique_application.commit }}) # Sert derriere le frontal ou l'edge (TLS termine la-bas). server { listen {{ app_statique_port_front }}; server_name {{ app_statique_application.noms | join(' ') }}; root {{ app_statique_racine | trim }}; index index.html; add_header X-Content-Type-Options "nosniff" always; add_header X-Frame-Options "SAMEORIGIN" always; add_header Referrer-Policy "strict-origin-when-cross-origin" always; add_header Content-Security-Policy "{{ app_statique_csp | trim }}" always; gzip on; gzip_types text/css application/javascript text/html image/svg+xml; gzip_min_length 1024; location /assets/ { expires 7d; add_header Cache-Control "public"; } location / { try_files $uri $uri/ $uri.html =404; } error_page 404 /404.html; access_log /var/log/nginx/{{ app_statique_vhost }}.access.log; error_log /var/log/nginx/{{ app_statique_vhost }}.error.log; }