Files

19 lines
383 B
Nginx Configuration File

server {
listen 80;
server_name _;
root /usr/share/nginx/html;
index index.html;
location / {
try_files $uri $uri/ =404;
}
error_page 404 /404.html;
# long cache for fingerprinted/static assets
location ~* \.(css|js|woff2|webp|svg|png|jpe?g|ico)$ {
expires 7d;
add_header Cache-Control "public, max-age=604800";
}
}