Update cadvisor.subdomain.conf.sample

This commit is contained in:
Eric Nemchik 2023-04-14 15:24:07 -05:00 committed by GitHub
commit 9949018101
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -53,22 +53,4 @@ server {
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;
}
}