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