Created
July 19, 2023 07:39
-
-
Save GamePlayer-8/8f627cfb686aef2e8129faf575c8ba22 to your computer and use it in GitHub Desktop.
nginx_netdata.conf
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set $netdataip <NETDATA IP>; | |
set $netdataport <NETDATA PORT>; | |
location = /netdata { | |
return 301 /netdata/; | |
} | |
location ~ /netdata/(?<ndpath>.*) { | |
proxy_redirect off; | |
proxy_set_header Host $host; | |
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_http_version 1.1; | |
proxy_pass_request_headers on; | |
proxy_set_header Connection "keep-alive"; | |
proxy_store off; | |
proxy_pass http://$netdataip:$netdataport/$ndpath$is_args$args; | |
gzip on; | |
gzip_proxied any; | |
gzip_types *; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment