diff --git a/core/metrics/grafana.nomad b/core/metrics/grafana.nomad index bd3eb2d..7eca11b 100644 --- a/core/metrics/grafana.nomad +++ b/core/metrics/grafana.nomad @@ -26,6 +26,7 @@ job "grafana" { tags = [ "traefik.enable=true", "traefik.http.routers.grafana.entryPoints=websecure", + "traefik.http.routers.grafana.middlewares=authelia@nomad", ] } diff --git a/core/metrics/grafana/grafana.ini b/core/metrics/grafana/grafana.ini index 7c6bb8f..8558a1f 100644 --- a/core/metrics/grafana/grafana.ini +++ b/core/metrics/grafana/grafana.ini @@ -283,7 +283,7 @@ log_queries = [auth.proxy] {{ with nomadService "traefik" -}} enabled = true -header_name = X-WEBAUTH-USER +header_name = Remote-User header_property = username auto_sign_up = true {{- $last := len . | subtract 1 -}}