Files
playuniare.sori.studio/docker/nginx.conf
2026-06-19 10:58:41 +09:00

32 lines
718 B
Nginx Configuration File

server {
listen 80;
server_name _;
root /usr/share/nginx/html;
index index.html;
location / {
try_files $uri $uri/ /index.html;
}
location = /health {
access_log off;
add_header Content-Type text/plain;
return 200 'ok';
}
location ^~ /card-assets/ {
alias /srv/uniare-card-images/;
autoindex off;
expires 1h;
add_header Cache-Control "public, max-age=3600";
add_header X-Content-Type-Options "nosniff";
}
location ~* \.(?:css|js|jpg|jpeg|gif|png|svg|ico|webp|woff2?)$ {
expires 7d;
add_header Cache-Control "public, max-age=604800, immutable";
try_files $uri =404;
}
}