31 lines
640 B
Plaintext
31 lines
640 B
Plaintext
server {
|
|
listen 80;
|
|
server_name _;
|
|
|
|
root /usr/share/nginx/html;
|
|
index index.html;
|
|
|
|
charset utf-8;
|
|
|
|
location = / {
|
|
try_files /index.html =404;
|
|
add_header Cache-Control "no-store";
|
|
}
|
|
|
|
location ~* \.(?:css|js|mjs|json|ico|png|jpe?g|gif|svg|webp|txt|xml|map)$ {
|
|
try_files $uri =404;
|
|
access_log off;
|
|
add_header Cache-Control "public, max-age=3600";
|
|
}
|
|
|
|
location ~* \.html$ {
|
|
try_files $uri =404;
|
|
add_header Cache-Control "no-store";
|
|
}
|
|
|
|
location / {
|
|
try_files $uri $uri/ /404.html;
|
|
add_header Cache-Control "no-store";
|
|
}
|
|
}
|