Files
whale-town-front-v2/deploy/nginx/whaletown-front-v2.conf.example
2026-07-20 21:07:27 +08:00

36 lines
796 B
Plaintext

server {
listen 80;
server_name whaletown.xinghangee.icu;
root /var/www/whale-town-front-v2/build/web;
index index.html;
location / {
try_files $uri $uri/ /index.html;
}
location = /index.html {
add_header Cache-Control "no-cache";
}
location ~* \.wasm$ {
default_type application/wasm;
expires 5m;
add_header Cache-Control "public, max-age=300";
try_files $uri =404;
}
location ~* \.pck$ {
default_type application/octet-stream;
expires 5m;
add_header Cache-Control "public, max-age=300";
try_files $uri =404;
}
location ~* \.(?:js|png|ico)$ {
expires 5m;
add_header Cache-Control "public, max-age=300";
try_files $uri =404;
}
}