Remove metrics endpoints

This commit is contained in:
Eric Nemchik 2023-04-14 20:37:51 +00:00 committed by GitHub
commit 393e4341b2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 5 additions and 100 deletions

View file

@ -1,4 +1,4 @@
## Version 2023/02/12
## Version 2023/04/14
# make sure that your authelia container is named authelia
# make sure that your dns has a cname set for authelia
# the default authelia-server and authelia-location confs included with swag rely on
@ -36,22 +36,4 @@ server {
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
}
location ~ (/authelia)?/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 authelia;
set $upstream_port 9959;
set $upstream_proto http;
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
}
}