server { listen 80; server_name {{ groupe_meditation_domain }}; add_header X-Content-Type-Options nosniff always; add_header X-Frame-Options DENY always; add_header X-XSS-Protection "1; mode=block" always; add_header Referrer-Policy strict-origin-when-cross-origin always; location /api/ { proxy_pass http://{{ groupe_meditation_api_host }}:{{ groupe_meditation_api_port }}; 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; } root {{ groupe_meditation_web_root }}; index index.html; location = /index.html { expires off; add_header Cache-Control "no-cache, no-store, must-revalidate" always; add_header Pragma "no-cache" always; add_header Expires "0" always; } location ~ ^/(sw\.js|push-sw\.js|registerSW\.js|manifest\.webmanifest)$ { expires off; add_header Cache-Control "no-cache, no-store, must-revalidate" always; add_header Pragma "no-cache" always; add_header Expires "0" always; try_files $uri =404; } location ~* \.(js|css|png|jpg|svg|woff2|ico)$ { expires 1y; add_header Cache-Control "public, immutable" always; try_files $uri =404; } location / { try_files $uri $uri/ /index.html; } client_max_body_size 5M; }