Files
snapcad-studio/deploy/docker/nginx.conf
T

32 lines
800 B
Nginx Configuration File
Raw Normal View History

2026-06-20 10:07:33 +03:00
server {
listen 80 default_server;
listen [::]:80 default_server;
server_name _;
root /usr/share/nginx/html;
index index.html;
server_tokens off;
gzip on;
gzip_types application/javascript application/json application/wasm image/svg+xml text/css text/plain;
add_header X-Content-Type-Options "nosniff" always;
add_header Referrer-Policy "same-origin" always;
location = /healthz {
access_log off;
default_type text/plain;
return 200 "ok\n";
}
location /_next/static/ {
try_files $uri =404;
expires 1y;
add_header Cache-Control "public, max-age=31536000, immutable";
}
location / {
try_files $uri $uri/ $uri.html /index.html;
add_header Cache-Control "no-cache";
}
}