Skip to content

Commit

Permalink
Merge pull request #153 from Amsterdam/feature/fix-import-jwks-use-te…
Browse files Browse the repository at this point in the history
…st-key

Pass env variable in docker-compose
  • Loading branch information
TerryvanWalen authored Nov 6, 2023
2 parents 40590f4 + 2140032 commit 3b0b012
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions deploy/import/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ services:
DATABASE_NAME: iiif_metadata_server
DATABASE_USER: iiif_metadata_server
DATABASE_PASSWORD: insecure
JWKS_USE_TEST_KEY: ${JWKS_USE_TEST_KEY}
MIN_BOUWDOSSIERS_COUNT:
command: >
bash -c "/deploy/import/docker-import-db.sh"
Expand Down
2 changes: 1 addition & 1 deletion src/main/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
}
"""

if os.getenv('JWKS_USE_TEST_KEY', False):
if os.getenv('JWKS_USE_TEST_KEY', 'false').lower() == 'true':
JWKS = JWKS_TEST_KEY
else:
JWKS = os.environ['PUB_JWKS']
Expand Down

0 comments on commit 3b0b012

Please sign in to comment.