server { listen 80; server_name _; root /usr/share/nginx/html; index index.html; charset utf-8; location / { try_files $uri $uri/ =404; } location ~ /\. { deny all; } location ~ ^/images/ { add_header Cache-Control "no-cache" always; try_files $uri =404; } location ~* \.(webp|png|jpg|jpeg|svg|ttf|woff2?)$ { expires 7d; add_header Cache-Control "public"; try_files $uri =404; } location ~* \.(html|css|js|json)$ { add_header Cache-Control "no-cache"; try_files $uri =404; } add_header X-Content-Type-Options nosniff always; add_header Referrer-Policy strict-origin-when-cross-origin always; }