Skip to content

Commit

Permalink
feat: add URL for laskugeneraattori
Browse files Browse the repository at this point in the history
  • Loading branch information
tonitert authored and MikaelSiidorow committed Aug 19, 2024
1 parent 4676316 commit c75423b
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 8 deletions.
1 change: 1 addition & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@ module "web" {
google_oauth_client_id = module.keyvault.secrets["google-oauth-client-id"]
google_oauth_client_secret = module.keyvault.secrets["google-oauth-client-secret"]
public_ilmo_url = "https://${module.ilmo.fqdn}"
public_laskugeneraattori_url = "https://laskutus.tietokilta.fi"
public_legacy_url = "https://tietokilta.fi"
digitransit_subscription_key = module.keyvault.secrets["digitransit-subscription-key"]
}
Expand Down
17 changes: 9 additions & 8 deletions modules/web/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -59,14 +59,15 @@ resource "azurerm_linux_web_app" "web" {
}
https_only = true
app_settings = {
NODE_ENVIRONMENT = "production"
PUBLIC_ILMOMASIINA_URL = var.public_ilmo_url
WEBSITES_PORT = 3000
PORT = 3000
NEXT_REVALIDATION_KEY = random_password.revalidation_key.result
PUBLIC_SERVER_URL = "https://${azurerm_linux_web_app.cms.default_hostname}"
PUBLIC_LEGACY_URL = var.public_legacy_url
DIGITRANSIT_SUBSCRIPTION_KEY = var.digitransit_subscription_key
NODE_ENVIRONMENT = "production"
PUBLIC_ILMOMASIINA_URL = var.public_ilmo_url
NEXT_PUBLIC_LASKUGENERAATTORI_URL = var.public_laskugeneraattori_url
WEBSITES_PORT = 3000
PORT = 3000
NEXT_REVALIDATION_KEY = random_password.revalidation_key.result
PUBLIC_SERVER_URL = "https://${azurerm_linux_web_app.cms.default_hostname}"
PUBLIC_LEGACY_URL = var.public_legacy_url
DIGITRANSIT_SUBSCRIPTION_KEY = var.digitransit_subscription_key
}
}
resource "random_password" "payload_secret" {
Expand Down
3 changes: 3 additions & 0 deletions modules/web/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,10 @@ variable "google_oauth_client_secret" {

variable "public_ilmo_url" {
type = string
}

variable "public_laskugeneraattori_url" {
type = string
}

variable "public_legacy_url" {
Expand Down

0 comments on commit c75423b

Please sign in to comment.