XuqmGroup-Web/nginx/ops.conf

20 行
498 B
Plaintext

server {
listen 80;
server_name _;
root /usr/share/nginx/html;
index index.html;
location ~* ^/(?:releases/[^/]+/assets|assets)/ {
try_files $uri =404;
add_header Cache-Control "public, max-age=31536000, immutable" always;
}
location / {
try_files $uri $uri/ /index.html;
add_header Cache-Control "no-cache, no-store, must-revalidate" always;
add_header Pragma "no-cache" always;
add_header Expires "0" always;
}
}