diff --git a/coreos-config/roles/compose_project/templates/traefik/dynamic.yaml b/coreos-config/roles/compose_project/templates/traefik/dynamic.yaml index 00cf8d4..38f4a87 100644 --- a/coreos-config/roles/compose_project/templates/traefik/dynamic.yaml +++ b/coreos-config/roles/compose_project/templates/traefik/dynamic.yaml @@ -26,3 +26,7 @@ http: middlewares: - oauth-errors - oauth-auth + deny-metrics: + replacePathRegex: + regex: "^/metrics$" + replacement: "/" diff --git a/coreos-config/roles/compose_project/templates/traefik/traefik.yaml b/coreos-config/roles/compose_project/templates/traefik/traefik.yaml index abc12b5..f1c1914 100644 --- a/coreos-config/roles/compose_project/templates/traefik/traefik.yaml +++ b/coreos-config/roles/compose_project/templates/traefik/traefik.yaml @@ -20,6 +20,8 @@ entryPoints: http: tls: certResolver: letsencrypt + middlewares: + - deny-metrics@file certificatesResolvers: letsencrypt: