mirror of
https://github.com/caiwx86/small-packages.git
synced 2026-11-19 06:32:58 +08:00
15 lines
470 B
Plaintext
15 lines
470 B
Plaintext
location /netdata/ {
|
|
proxy_set_header Host $host;
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
proxy_set_header X-Forwarded-Proto $scheme;
|
|
proxy_http_version 1.1;
|
|
proxy_set_header Connection "";
|
|
proxy_buffering off;
|
|
proxy_read_timeout 600s;
|
|
proxy_pass http://127.0.0.1:19999/;
|
|
proxy_redirect default;
|
|
#auth_basic 'Please login to continue';
|
|
#auth_basic_user_file /etc/nginx/conf.d/netdata.htpasswd;
|
|
}
|