http {
include mime.types;
default_type application/octet-stream;
sendfile on;
keepalive_timeout 65;
server {
listen 80;
listen [::]:80;
server_name 3636461.xyz blog.3636461.xyz;
root /var/www/html/blog/public;
index index.html;
location / {
add_header Cache-Control "public, max-age=3600";
}
location ~ \.(jpg|jpeg|gif|png)$ {
add_header Cache-Control "public, s-maxage=7776000, max-age=86400";
}
location ~ \.(css|js)$ {
add_header Cache-Control "public, max-age=31536000";
}
location /assets/fonts/ {
add_header Cache-Control "public, s-maxage=7776000, max-age=86400";
}
error_page 404 /404.html;
}
}