1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/netdata_ynh.git synced 2024-09-03 19:46:33 +02:00

Adapt Nginx configuration to enable YunoHost tile (fixes #5)

This commit is contained in:
Jimmy Monin 2017-03-19 16:39:54 +01:00
parent c31761fbc0
commit 2c22e1b33b
2 changed files with 2 additions and 0 deletions

View file

@ -2,6 +2,7 @@ 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_set_header Accept-Encoding "";
proxy_pass http://127.0.0.1:19999;
proxy_http_version 1.1;
proxy_pass_request_headers on;

View file

@ -9,6 +9,7 @@ location ~ YNH_WWW_PATH/(?<ndpath>.*) {
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_set_header Accept-Encoding "";
proxy_http_version 1.1;
proxy_pass_request_headers on;
proxy_set_header Connection "keep-alive";