mirror of
https://github.com/kenzok8/small-package.git
synced 2026-01-14 03:14:58 +08:00
12 lines
406 B
Plaintext
12 lines
406 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_pass http://localhost:19999/;
|
|
proxy_redirect default;
|
|
proxy_set_header Connection "keep-alive";
|
|
auth_basic 'Please login to continue';
|
|
#auth_basic_user_file /etc/nginx/conf.d/netdata.htpasswd;
|
|
}
|