Skip to content

Instantly share code, notes, and snippets.

@atrakic
Created December 25, 2017 15:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save atrakic/e34ec5d65e0a2b8cc1a92a2a2ffbc138 to your computer and use it in GitHub Desktop.
Save atrakic/e34ec5d65e0a2b8cc1a92a2a2ffbc138 to your computer and use it in GitHub Desktop.
upstream backend {
# the netdata server
server 127.0.0.1:19999;
keepalive 64;
}
server {
# ...
# bash <(curl -Ss https://my-netdata.io/kickstart.sh)
location /n/ {
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_http_version 1.1;
proxy_pass_request_headers on;
proxy_set_header Connection "keep-alive";
proxy_store off;
rewrite /n/(.*) /$1 break;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment