nginx.conf 618 B

123456789101112131415161718192021222324252627
  1. server {
  2. listen 80;
  3. server_name _;
  4. root /usr/share/nginx/html;
  5. index index.html;
  6. charset utf-8;
  7. gzip on;
  8. gzip_vary on;
  9. gzip_min_length 1024;
  10. gzip_types text/plain text/css application/javascript application/json image/svg+xml;
  11. location = /healthz {
  12. access_log off;
  13. default_type text/plain;
  14. return 200 "ok\n";
  15. }
  16. location / {
  17. add_header Cache-Control "no-store";
  18. try_files $uri $uri/ /index.html;
  19. }
  20. location ~* \.(css|js|svg|png|jpg|jpeg|gif|ico|woff2?)$ {
  21. add_header Cache-Control "no-store";
  22. }
  23. }