add site configurations for netdata.asininetech.net

This commit is contained in:
Sadiq Saif 2017-07-17 22:52:57 -04:00 committed by GitHub
parent fb6039aebf
commit 1ca6c8643c
1 changed files with 27 additions and 0 deletions

View File

@ -216,6 +216,33 @@
- resolver 8.8.8.8 valid=300s
- add_header Strict-Transport-Security max-age=31536000
- error_page 404 /404.html
netdata.asininetech.net.http:
- listen {{ ansible_default_ipv4.address }}:80
- listen [{{ ansible_default_ipv6.address }}]:80
- server_name netdata.asininetech.net
- return 301 "https://$host$request_uri"
netdata.asininetech.net.https:
- listen {{ ansible_default_ipv4.address }}:443 ssl http2
- listen [{{ ansible_default_ipv6.address }}]:443 ssl http2
- server_name sadiqsaif.com
- root "/srv/www/netdata.asininetech.net"
- access_log "/var/log/nginx/netdata.asininetech.net.access.log"
- error_log "/var/log/nginx/netdata.asininetech.net.error.log"
- ssl_certificate "/etc/letsencrypt/live/netdata.asininetech.net/fullchain.pem"
- ssl_certificate_key "/etc/letsencrypt/live/netdata.asininetech.net/privkey.pem"
- ssl_stapling on
- resolver 8.8.8.8 valid=300s
- add_header Strict-Transport-Security max-age=31536000
- location / {
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Server $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass http://backend;
proxy_http_version 1.1;
proxy_pass_request_headers on;
proxy_set_header Connection "keep-alive";
proxy_store off;
}
nginx_configs:
gzip:
- gzip on