Block external access to /metrics endpoint by regex replace
This commit is contained in:
parent
37fe8a51d9
commit
6c182e8409
@ -26,3 +26,7 @@ http:
|
||||
middlewares:
|
||||
- oauth-errors
|
||||
- oauth-auth
|
||||
deny-metrics:
|
||||
replacePathRegex:
|
||||
regex: "^/metrics$"
|
||||
replacement: "/"
|
||||
|
@ -20,6 +20,8 @@ entryPoints:
|
||||
http:
|
||||
tls:
|
||||
certResolver: letsencrypt
|
||||
middlewares:
|
||||
- deny-metrics@file
|
||||
|
||||
certificatesResolvers:
|
||||
letsencrypt:
|
||||
|
Loading…
Reference in New Issue
Block a user