nginx.conf 729 B

1234567891011121314151617181920212223242526272829303132
  1. server {
  2. listen 80;
  3. server_name _;
  4. server_tokens off;
  5. root /usr/share/nginx/html;
  6. index index.html;
  7. add_header X-Content-Type-Options nosniff always;
  8. add_header X-Frame-Options DENY always;
  9. add_header Referrer-Policy strict-origin-when-cross-origin always;
  10. location = /healthz {
  11. access_log off;
  12. add_header Content-Type text/plain;
  13. return 200 "ok\n";
  14. }
  15. location = /index.html {
  16. add_header Cache-Control "no-cache, no-store, must-revalidate";
  17. }
  18. location /assets/ {
  19. try_files $uri =404;
  20. expires 1y;
  21. add_header Cache-Control "public, immutable";
  22. }
  23. location / {
  24. try_files $uri $uri/ /index.html;
  25. }
  26. }