From 7430ab20d240cbd469b44f89d61057a81e613523 Mon Sep 17 00:00:00 2001 From: Phil Date: Thu, 10 Oct 2024 17:03:45 -0600 Subject: [PATCH] Enabled OIDC for hoarder --- roles/docker/files/hoarder-compose.yml | 3 +++ roles/docker/templates/hoarder-env.j2 | 6 +++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/roles/docker/files/hoarder-compose.yml b/roles/docker/files/hoarder-compose.yml index f6388c6..045e4d3 100644 --- a/roles/docker/files/hoarder-compose.yml +++ b/roles/docker/files/hoarder-compose.yml @@ -9,6 +9,9 @@ services: - 3000:3000 env_file: - .env + extra_hosts: + - 'auth.thesatelliteoflove.com:172.20.0.5' + - bookmarks.thesatelliteoflove.com:172.20.0.5 environment: MEILI_ADDR: http://meilisearch:7700 DATA_DIR: /data diff --git a/roles/docker/templates/hoarder-env.j2 b/roles/docker/templates/hoarder-env.j2 index 3d4992f..eced3a1 100644 --- a/roles/docker/templates/hoarder-env.j2 +++ b/roles/docker/templates/hoarder-env.j2 @@ -2,4 +2,8 @@ HOARDER_VERSION=release NEXTAUTH_SECRET={{ hoarder_nextauth_secret }} MEILI_MASTER_KEY={{ hoarder_meili_master_key }} NEXTAUTH_URL=https://bookmarks.thesatelliteoflove.com -OPENAI_API_KEY={{ openai_api_key }} \ No newline at end of file +OPENAI_API_KEY={{ openai_api_key }} +OAUTH_CLIENT_SECRET={{ hoarder_oidc_client_secret }} +OAUTH_CLIENT_ID=GTi0QBRH5TiTqZfxfAkYSQVVFouGdlOFMc2sjivN +OAUTH_PROVIDER_NAME=Authentik +OAUTH_WELLKNOWN_URL=https://auth.thesatelliteoflove.com/application/o/hoarder/.well-known/openid-configuration \ No newline at end of file