Update not-so-great tweaks.

This commit is contained in:
Josh Mudge 2019-01-12 22:28:49 -07:00
parent 5aca247a5a
commit f58f1a2382
1 changed files with 27 additions and 35 deletions

View File

@ -1,3 +1,4 @@
# Expires map
map $sent_http_content_type $expires {
default off;
text/html epoch;
@ -10,23 +11,11 @@ map $sent_http_content_type $expires {
application/x-font-opentype max;
}
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;
# Enable Gzip
# Enable Gzip for select elements. (safe)
gzip on;
gzip_buffers 4 8k;
gzip_proxied any;
@ -34,6 +23,9 @@ server {
text/css
font/truetype
font/opentype
text/plain;
# text/javascript
# application/javascript;
gzip_static on;