Describe a few things better with comments

This commit is contained in:
Tim de Pater
2023-01-07 07:06:53 +01:00
parent bf2732f0cf
commit 31e09d9b2a
2 changed files with 3 additions and 1 deletions

View File

@@ -34,6 +34,7 @@ server {
include fastcgi_params;
}
# Set the cache-control headers on assets to cache for 5 days
location ~* \.(jpg|jpeg|gif|png|css|js|ico|xml)$ {
expires 5d;
}

View File

@@ -33,12 +33,13 @@ http {
fastcgi_hide_header X-Powered-By;
server_tokens off;
# Enable gzip compression by default
gzip on;
gzip_proxied any;
gzip_types text/plain application/xml text/css text/js text/xml application/x-javascript text/javascript application/json application/xml+rss;
gzip_vary on;
gzip_disable "msie6";
# Include other server configs
# Include server configs
include /etc/nginx/conf.d/*.conf;
}