Josh Mudge
5 years ago
1 changed files with 29 additions and 37 deletions
@ -1,43 +1,35 @@ |
|||||
map $sent_http_content_type $expires { |
# Expires map |
||||
default off; |
map $sent_http_content_type $expires { |
||||
text/html epoch; |
default off; |
||||
text/css max; |
text/html epoch; |
||||
application/javascript max; |
text/css max; |
||||
~image/ max; |
application/javascript max; |
||||
application/font-woff max; |
~image/ max; |
||||
application/font-woff2 max; |
application/font-woff max; |
||||
application/x-font-truetype max; |
application/font-woff2 max; |
||||
application/x-font-opentype max; |
application/x-font-truetype max; |
||||
} |
application/x-font-opentype max; |
||||
|
} |
||||
|
|
||||
server { |
server { |
||||
# listen 8080 default_server; |
|
||||
# listen [::]:8080 default_server; |
|
||||
# return 301 https://$host$request_uri; |
|
||||
|
|
||||
# SSL configuration |
|
||||
# |
|
||||
listen 443 ssl default_server; |
|
||||
listen [::]:443 ssl default_server; |
|
||||
#ssl_certificate /etc/letsencrypt/live/cityofardon.com/fullchain.pem; # managed by Certbot |
|
||||
#ssl_certificate_key /etc/letsencrypt/live/cityofardon.com/privkey.pem; # managed by Certbot |
|
||||
|
|
||||
expires $expires; |
expires $expires; |
||||
|
|
||||
|
# Enable Gzip for select elements. (safe) |
||||
# Enable Gzip |
gzip on; |
||||
gzip on; |
gzip_buffers 4 8k; |
||||
gzip_buffers 4 8k; |
gzip_proxied any; |
||||
gzip_proxied any; |
gzip_types |
||||
gzip_types |
text/css |
||||
text/css |
font/truetype |
||||
font/truetype |
font/opentype |
||||
font/opentype |
text/plain; |
||||
|
# text/javascript |
||||
gzip_static on; |
# application/javascript; |
||||
|
|
||||
gzip_proxied expired no-cache no-store private auth; |
gzip_static on; |
||||
gzip_disable "MSIE [1-6]\."; |
|
||||
gzip_vary on; |
gzip_proxied expired no-cache no-store private auth; |
||||
|
gzip_disable "MSIE [1-6]\."; |
||||
|
gzip_vary on; |
||||
|
|
||||
|
Loading…
Reference in new issue