Skip to content

Commit

Permalink
feat(terraform): map DJANGO_DB config to key vault secrets
Browse files Browse the repository at this point in the history
  • Loading branch information
thekaveman committed Nov 1, 2023
1 parent 0839086 commit 6c8f82e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions terraform/app_service.tf
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@ resource "azurerm_linux_web_app" "main" {
# Django settings
"DJANGO_ADMIN" = (local.is_prod || local.is_test) ? null : "${local.secret_prefix}django-admin)",
"DJANGO_ALLOWED_HOSTS" = "${local.secret_prefix}django-allowed-hosts)",
"DJANGO_DB_DIR" = "${local.secret_prefix}django-db-dir)",
"DJANGO_DB_RESET" = "${local.secret_prefix}django-db-reset)",
"DJANGO_DEBUG" = local.is_prod ? null : "${local.secret_prefix}django-debug)",
"DJANGO_LOG_LEVEL" = "${local.secret_prefix}django-log-level)",

Expand Down

0 comments on commit 6c8f82e

Please sign in to comment.