mirror of
https://github.com/linuxserver/reverse-proxy-confs.git
synced 2025-08-21 05:43:45 -07:00
Remove metrics endpoints
This commit is contained in:
parent
4cb158eacf
commit
393e4341b2
5 changed files with 5 additions and 100 deletions
|
@ -1,4 +1,4 @@
|
|||
## Version 2023/02/12
|
||||
## Version 2023/04/14
|
||||
# make sure that your authentik container is named authentik-server
|
||||
# make sure that your dns has a cname set for authentik
|
||||
|
||||
|
@ -32,22 +32,4 @@ server {
|
|||
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
|
||||
|
||||
}
|
||||
|
||||
location ~ (/authentik)?/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 authentik-server;
|
||||
set $upstream_port 9300;
|
||||
set $upstream_proto http;
|
||||
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
|
||||
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue