server { listen 80; root /usr/share/nginx/html; index index.html; # Routage par chemin : /set-password?token=... doit servir index.html, # sinon nginx renvoie 404 sur toute URL profonde. location / { try_files $uri $uri/ /index.html; } location ~* \.(js|css|png|jpg|jpeg|gif|svg|woff2?|ttf|json)$ { expires 7d; add_header Cache-Control "public"; } # index.html jamais mis en cache, sinon un redéploiement ne se voit pas. location = /index.html { add_header Cache-Control "no-store, must-revalidate"; } }