Skip to content

Commit

Permalink
fix: use correct env vars for aspnet
Browse files Browse the repository at this point in the history
  • Loading branch information
buehler committed Aug 28, 2023
1 parent 9658d4c commit 90cdf51
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
14 changes: 7 additions & 7 deletions infrastructure/cloud-run.tf
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,13 @@ resource "google_project_iam_member" "cloud_runner_svc" {
locals {
run_env = {
"ASPNETCORE_URLS" : "http://+:8080",
"DATABASE_HOST" : "/cloudsql/${google_sql_database_instance.pgsql_db.connection_name}",
"DATABASE_PORT" : "5432",
"DATABASE_DATABASE" : google_sql_database.db.name,
"DATABASE_USERNAME" : google_sql_user.db_user.name,
"AUTHENTICATION_ISSUER" : "https://${local.zitadel_instance}",
"SWAGGER_CLIENTID" : zitadel_application_oidc.swagger.client_id,
"STORAGE_BUCKET" : google_storage_bucket.gcs_bucket.name,
"DATABASE__HOST" : "/cloudsql/${google_sql_database_instance.pgsql_db.connection_name}",
"DATABASE__PORT" : "5432",
"DATABASE__DATABASE" : google_sql_database.db.name,
"DATABASE__USERNAME" : google_sql_user.db_user.name,
"AUTHENTICATION__ISSUER" : "https://${local.zitadel_instance}",
"SWAGGER__CLIENTID" : zitadel_application_oidc.swagger.client_id,
"STORAGE__BUCKET" : google_storage_bucket.gcs_bucket.name,
}
run_secrets = {
"DATABASE_PASSWORD" : "db-pass",
Expand Down
2 changes: 1 addition & 1 deletion infrastructure/zitadel.tf
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ resource "zitadel_application_oidc" "swagger" {

name = "Swagger UI"
redirect_uris = [
"https://mumble-api-4cxdci3drq-oa.a.run.app/oauth2-redirect.html",
"https://mumble-api-prod-4cxdci3drq-oa.a.run.app/oauth2-redirect.html",
]
app_type = "OIDC_APP_TYPE_WEB"
response_types = ["OIDC_RESPONSE_TYPE_CODE"]
Expand Down

0 comments on commit 90cdf51

Please sign in to comment.