server { listen 80 default_server; server_name _; root /usr/share/nginx/html; index index.html; charset utf-8; gzip on; gzip_vary on; gzip_min_length 1024; gzip_comp_level 6; gzip_types text/plain text/css text/javascript text/xml application/javascript application/json application/xml image/svg+xml; add_header X-Frame-Options "SAMEORIGIN" always; add_header X-Content-Type-Options "nosniff" always; add_header Referrer-Policy "strict-origin-when-cross-origin" always; location = /healthz { access_log off; add_header Content-Type text/plain; return 200 "ok\n"; } location / { try_files $uri $uri/ /index.html; add_header Cache-Control "public, max-age=300"; } location ~* \.(css|js|svg|woff2?|ttf|otf|eot|png|jpe?g|gif|webp|ico)$ { expires 7d; add_header Cache-Control "public, max-age=604800, immutable"; } }