Update example.nginx

This commit is contained in:
Kainoa Kanter 2022-03-15 22:32:43 -07:00 committed by GitHub
parent 14f3bfd6fb
commit 856c8644e2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 8 deletions

View File

@ -42,13 +42,11 @@ server {
add_header Cache-Control "public, no-transform";
}
location ~* \.(js|css|pdf|html|swf)$ {
expires 30d;
add_header Cache-Control "public, no-transform";
}
expires 30d;
add_header Cache-Control "public, no-transform";
# If you have SSL certs from letsencrypt via certbot, uncomment the below lines:
# ssl_certificate /etc/letsencrypt/live/example.tld/fullchain.pem;
# ssl_certificate_key /etc/letsencrypt/live/example.tld/privkey.pem;
}
# ssl_certificate /etc/letsencrypt/live/example.tld/fullchain.pem;
# ssl_certificate_key /etc/letsencrypt/live/example.tld/privkey.pem;
}