mirror of
https://github.com/linuxserver/reverse-proxy-confs.git
synced 2025-08-19 04:50:10 -07:00
Update cadvisor.subdomain.conf.sample
This commit is contained in:
parent
fddab7224d
commit
9949018101
1 changed files with 0 additions and 18 deletions
|
@ -53,22 +53,4 @@ server {
|
||||||
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
|
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~ (/cadvisor)?/metrics {
|
|
||||||
# enable the next two lines for http auth
|
|
||||||
#auth_basic "Restricted";
|
|
||||||
#auth_basic_user_file /config/nginx/.htpasswd;
|
|
||||||
|
|
||||||
# block metrics access by default because it is unprotected
|
|
||||||
# you can comment out the next line to enable remote metrics
|
|
||||||
deny all;
|
|
||||||
|
|
||||||
include /config/nginx/proxy.conf;
|
|
||||||
include /config/nginx/resolver.conf;
|
|
||||||
set $upstream_app cadvisor;
|
|
||||||
set $upstream_port 8080;
|
|
||||||
set $upstream_proto http;
|
|
||||||
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue