update netdata proxy pass and add backend
This commit is contained in:
parent
055458219e
commit
2d6a0a42b3
@ -237,7 +237,7 @@
|
|||||||
proxy_set_header X-Forwarded-Host $host;
|
proxy_set_header X-Forwarded-Host $host;
|
||||||
proxy_set_header X-Forwarded-Server $host;
|
proxy_set_header X-Forwarded-Server $host;
|
||||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
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_http_version 1.1;
|
||||||
proxy_pass_request_headers on;
|
proxy_pass_request_headers on;
|
||||||
proxy_set_header Connection "keep-alive";
|
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
|
- gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript
|
||||||
upstream:
|
upstream:
|
||||||
- upstream php { server unix:/run/php/php7.0-fpm.sock; }
|
- upstream php { server unix:/run/php/php7.0-fpm.sock; }
|
||||||
|
- upstream netdata { server 127.0.0.1:19999; keepalive 64; }
|
||||||
ssl:
|
ssl:
|
||||||
- ssl_protocols TLSv1.2
|
- ssl_protocols TLSv1.2
|
||||||
- ssl_prefer_server_ciphers on
|
- ssl_prefer_server_ciphers on
|
||||||
|
Loading…
Reference in New Issue
Block a user