From 2d6a0a42b345841ce7c300bae8aa3f4b1f7c75b6 Mon Sep 17 00:00:00 2001 From: Sadiq Saif Date: Mon, 17 Jul 2017 23:01:33 -0400 Subject: [PATCH] update netdata proxy pass and add backend --- ubuntu/site.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ubuntu/site.yml b/ubuntu/site.yml index 83dad70..2c86f11 100644 --- a/ubuntu/site.yml +++ b/ubuntu/site.yml @@ -237,7 +237,7 @@ 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_pass http://netdata; proxy_http_version 1.1; proxy_pass_request_headers on; proxy_set_header Connection "keep-alive"; @@ -250,6 +250,7 @@ - gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript upstream: - upstream php { server unix:/run/php/php7.0-fpm.sock; } + - upstream netdata { server 127.0.0.1:19999; keepalive 64; } ssl: - ssl_protocols TLSv1.2 - ssl_prefer_server_ciphers on