Skip to content

Commit

Permalink
feat: setup Metabase env variables (#3992)
Browse files Browse the repository at this point in the history
  • Loading branch information
zz-hh-aa authored Nov 21, 2024
1 parent 9660b8e commit c3cac3c
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 0 deletions.
4 changes: 4 additions & 0 deletions api.planx.uk/.env.test.example
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,7 @@ ORDNANCE_SURVEY_API_KEY=👻

IDOX_NEXUS_TOKEN_URL=👻
IDOX_NEXUS_SUBMISSION_URL=👻

# Analytics
METABASE_API_KEY=👻
METABASE_URL_EXT=metabase.example.com
2 changes: 2 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,8 @@ services:
IDOX_NEXUS_TOKEN_URL: ${IDOX_NEXUS_TOKEN_URL}
JWT_SECRET: ${JWT_SECRET}
MAPBOX_ACCESS_TOKEN: ${MAPBOX_ACCESS_TOKEN}
METABASE_API_KEY: ${METABASE_API_KEY}
METABASE_URL_EXT: ${METABASE_URL_EXT}
MINIO_PORT: ${MINIO_PORT}
ORDNANCE_SURVEY_API_KEY: ${ORDNANCE_SURVEY_API_KEY}
PORT: ${API_PORT}
Expand Down
2 changes: 2 additions & 0 deletions infrastructure/application/Pulumi.production.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -148,3 +148,5 @@ config:
aws:region: eu-west-2
cloudflare:apiToken:
secure: AAABAMbIBX9N21ModHyDYCQCGZXkRUP62NIUMhsxkK+/YUPRQr6PEqgZX9LRP2UuVwvVHd2RxvKGT8lpq8oAgyeDYP1eZSUl
application:metabase-api-key:
secure: AAABAAdkLyFGZJ50HENSAkvYZ9Y3Qj2oKysmBKNWbqgcCLYz+dDvgEBPTbzG6lNgOqUyySJDmquMilyiUtTLau7rpF4txEM/O4DHmAinVg==
2 changes: 2 additions & 0 deletions infrastructure/application/Pulumi.staging.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,3 +66,5 @@ config:
certificates:cloudflare-zone-id: dc27ac531ff8862559ed9ab5016c4953
cloudflare:apiToken:
secure: AAABABWhDm+7RstbxLXd1D8CcxkylHS6UKMqk4kOaY7Y0E7FJS4bZfvyGs0nks80hl3vjENH4eDuFbUgA82/sA4SmDlfpNXr
application:metabase-api-key:
secure: AAABAFf+hW09AWupsY6adrPAJHCkrTMeRX7/gaUHLYXi3QS77MVelPp9K0L4zyUL8u7zDanjuE9G/bfIlcVXLwiLLKAJkt5to9knKJqTXg==
8 changes: 8 additions & 0 deletions infrastructure/application/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -451,6 +451,14 @@ export = async () => {
name: "MAPBOX_ACCESS_TOKEN",
value: config.requireSecret("mapbox-access-token"),
},
{
name: "METABASE_API_KEY",
value: config.requireSecret("metabase-api-key"),
},
{
name: "METABASE_URL_EXT",
value: `https://metabase.${DOMAIN}`,
},
generateCORSAllowList(CUSTOM_DOMAINS, DOMAIN),
...generateTeamSecrets(config, env),
],
Expand Down

0 comments on commit c3cac3c

Please sign in to comment.