diff options
-rw-r--r-- | nginx.conf | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -1,5 +1,6 @@ server { listen 80; + listen [::]:80; server_name pig.observer; set $RD ""; @@ -17,9 +18,14 @@ server { add_header Onion-Location http://y4b244ai6krmmd6kjjiptqibjb4rvgf7lpeobhpk3j5vkvhqytt6ulyd.onion$request_uri; - #charset koi8-r; + charset utf-8; + charset_types text/xml text/css text/plain application/javascript application/rss+xml; #access_log /var/log/nginx/host.access.log main; rewrite_log on; + + gzip on; + add_header Strict-Transport-Security max-age=31536000 always; + add_header X-Content-Type-Options nosniff; location /georgiasnapshots/ { add_header Access-Control-Allow-Origin *; @@ -85,6 +91,7 @@ server { listen 443 ssl; # managed by Certbot + listen [::]:443 ssl; ssl_certificate /etc/letsencrypt/live/pig.observer/fullchain.pem; # managed by Certbot ssl_certificate_key /etc/letsencrypt/live/pig.observer/privkey.pem; # managed by Certbot include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot |