From 9bcc9132cae35af0136f96915c5025b3d2b0ca1c Mon Sep 17 00:00:00 2001 From: Matt Reeves Date: Sun, 20 Oct 2024 00:34:55 -0400 Subject: [PATCH] authentik + grafana --- docker/grafana/docker-compose.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/docker/grafana/docker-compose.yml b/docker/grafana/docker-compose.yml index b171454..f26d9da 100644 --- a/docker/grafana/docker-compose.yml +++ b/docker/grafana/docker-compose.yml @@ -22,6 +22,16 @@ services: environment: - GF_SECURITY_ADMIN_USER=mafyuh - GF_SECURITY_ADMIN_PASSWORD=$GF_SECURITY_ADMIN_PASSWORD + - GF_AUTH_GENERIC_OAUTH_ENABLED=true + - GF_AUTH_GENERIC_OAUTH_NAME=authentik + - GF_AUTH_GENERIC_OAUTH_CLIENT_ID=$GF_AUTH_GENERIC_OAUTH_CLIENT_ID + - GF_AUTH_GENERIC_OAUTH_CLIENT_SECRET=$GF_AUTH_GENERIC_OAUTH_CLIENT_SECRET + - GF_AUTH_GENERIC_OAUTH_SCOPES="openid profile email" + - GF_AUTH_GENERIC_OAUTH_AUTH_URL=$AUTHENTIK_URL/application/o/authorize/ + - GF_AUTH_GENERIC_OAUTH_TOKEN_URL=$AUTHENTIK_URL/application/o/token/ + - GF_AUTH_GENERIC_OAUTH_API_URL=$AUTHENTIK_URL/application/o/userinfo/ + - GF_AUTH_SIGNOUT_REDIRECT_URL=$AUTHENTIK_URL/application/o/grafana/end-session/ + - GF_AUTH_OAUTH_AUTO_LOGIN=true user: "1000" volumes: - /docker/appdata/grafana:/var/lib/grafana