Files
step3/web/nginx.conf
T
2026-07-14 00:50:17 -05:00

28 lines
741 B
Nginx Configuration File

server {
listen 8080;
server_name _;
root /usr/share/nginx/html;
index index.html;
gzip on;
gzip_min_length 1024;
gzip_types application/javascript application/wasm application/octet-stream text/css;
location = /healthz {
access_log off;
default_type text/plain;
return 200 "ok\n";
}
location = /index.html {
add_header Cache-Control "no-cache, no-store, must-revalidate" always;
add_header X-Content-Type-Options "nosniff" always;
try_files $uri =404;
}
location / {
add_header Cache-Control "public, max-age=3600" always;
add_header X-Content-Type-Options "nosniff" always;
try_files $uri $uri/ /index.html;
}
}