From 558dcc037be2990398863f0fe4d8429a570931e9 Mon Sep 17 00:00:00 2001 From: zz-hh-aa Date: Wed, 16 Oct 2024 16:00:05 +0100 Subject: [PATCH 1/3] feat: add metabase token and base url to dotenv template --- api.planx.uk/.env.test.example | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/api.planx.uk/.env.test.example b/api.planx.uk/.env.test.example index 947deafa0b..013a712192 100644 --- a/api.planx.uk/.env.test.example +++ b/api.planx.uk/.env.test.example @@ -43,3 +43,7 @@ ORDNANCE_SURVEY_API_KEY=๐Ÿ‘ป IDOX_NEXUS_TOKEN_URL=๐Ÿ‘ป IDOX_NEXUS_SUBMISSION_URL=๐Ÿ‘ป + +# Analytics +METABASE_API_KEY=๐Ÿ‘ป +METABASE_BASE_URL=๐Ÿ‘ป \ No newline at end of file From 6ffacbeb712df953adc8988cdbdadfcabe2c5be5 Mon Sep 17 00:00:00 2001 From: zz-hh-aa Date: Wed, 16 Oct 2024 16:32:17 +0100 Subject: [PATCH 2/3] chore: move metabase tokens up file structure to root .env also updates METABASE_BASE_URL to METABASE_URL_EXT --- .env.example | 2 ++ api.planx.uk/.env.test.example | 4 ---- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/.env.example b/.env.example index 9ee369705a..7e129a31d1 100644 --- a/.env.example +++ b/.env.example @@ -51,6 +51,8 @@ SLACK_WEBHOOK_URL=๐Ÿ‘ป # Metabase analytics METABASE_PORT=5000 +METABASE_API_KEY=๐Ÿ‘ป +METABASE_URL_EXT=๐Ÿ‘ป # Minio object storage server MINIO_PORT=9000 diff --git a/api.planx.uk/.env.test.example b/api.planx.uk/.env.test.example index 013a712192..947deafa0b 100644 --- a/api.planx.uk/.env.test.example +++ b/api.planx.uk/.env.test.example @@ -43,7 +43,3 @@ ORDNANCE_SURVEY_API_KEY=๐Ÿ‘ป IDOX_NEXUS_TOKEN_URL=๐Ÿ‘ป IDOX_NEXUS_SUBMISSION_URL=๐Ÿ‘ป - -# Analytics -METABASE_API_KEY=๐Ÿ‘ป -METABASE_BASE_URL=๐Ÿ‘ป \ No newline at end of file From 4eacfa962f55e4901e09967f889b73c185c6d428 Mon Sep 17 00:00:00 2001 From: ollie <107874766+zz-hh-aa@users.noreply.github.com> Date: Wed, 16 Oct 2024 17:41:52 +0100 Subject: [PATCH 3/3] chore: update .env.example with METABASE_PORT MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Dafydd Llลทr Pearson --- .env.example | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.env.example b/.env.example index 7e129a31d1..5bb66c3715 100644 --- a/.env.example +++ b/.env.example @@ -52,7 +52,7 @@ SLACK_WEBHOOK_URL=๐Ÿ‘ป # Metabase analytics METABASE_PORT=5000 METABASE_API_KEY=๐Ÿ‘ป -METABASE_URL_EXT=๐Ÿ‘ป +METABASE_URL_EXT=http://localhost:${METABASE_PORT} # Minio object storage server MINIO_PORT=9000