update netdata proxy pass and add backend

This commit is contained in:
Sadiq Saif 2017-07-17 23:01:33 -04:00 committed by GitHub
parent 055458219e
commit 2d6a0a42b3
1 changed files with 2 additions and 1 deletions

View File

@ -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