diff --git a/ubuntu/site.yml b/ubuntu/site.yml index 3a61b15..8f700ac 100644 --- a/ubuntu/site.yml +++ b/ubuntu/site.yml @@ -216,33 +216,6 @@ - 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 netdata.asininetech.net - - root "/srv/www/netdata.asininetech.net" - - access_log off - - error_log "/var/log/nginx/netdata.asininetech.net.error.log" - - ssl_certificate "/etc/ssl/letsencrypt/netdata.asininetech.net.crt" - - ssl_certificate_key "/etc/ssl/letsencrypt/netdata.asininetech.net.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://netdata; - proxy_http_version 1.1; - proxy_pass_request_headers on; - proxy_set_header Connection "keep-alive"; - proxy_store off; - } nginx_configs: gzip: - gzip on