Files
HKSingleParty/99_references/voyager-main/nginx.conf.template
2025-05-28 09:55:51 +08:00

23 lines
468 B
Plaintext

server {
listen ${NGINX_PORT};
gzip on;
gzip_types text/css application/javascript application/json image/svg+xml;
gzip_comp_level 9;
root /var/www/;
location / {
try_files $uri /index.html;
add_header Cache-Control no-cache;
}
location /assets/ {
add_header Cache-Control max-age=31536000;
}
location /_config {
alias /var/www/config.json;
add_header Cache-Control no-cache;
}
}