Update not-so-great tweaks.
This commit is contained in:
parent
5aca247a5a
commit
f58f1a2382
|
@ -1,4 +1,5 @@
|
||||||
map $sent_http_content_type $expires {
|
# Expires map
|
||||||
|
map $sent_http_content_type $expires {
|
||||||
default off;
|
default off;
|
||||||
text/html epoch;
|
text/html epoch;
|
||||||
text/css max;
|
text/css max;
|
||||||
|
@ -8,25 +9,13 @@ map $sent_http_content_type $expires {
|
||||||
application/font-woff2 max;
|
application/font-woff2 max;
|
||||||
application/x-font-truetype max;
|
application/x-font-truetype max;
|
||||||
application/x-font-opentype 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;
|
||||||
|
@ -34,6 +23,9 @@ server {
|
||||||
text/css
|
text/css
|
||||||
font/truetype
|
font/truetype
|
||||||
font/opentype
|
font/opentype
|
||||||
|
text/plain;
|
||||||
|
# text/javascript
|
||||||
|
# application/javascript;
|
||||||
|
|
||||||
gzip_static on;
|
gzip_static on;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue