From 65d24de2edb966610a8907faa16d670ae33047d4 Mon Sep 17 00:00:00 2001 From: gquadrati Date: Thu, 5 Oct 2023 15:08:17 +0200 Subject: [PATCH 1/3] fix magic link base url --- src/domains/ioweb-app/06_function_ioweb_profile.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/domains/ioweb-app/06_function_ioweb_profile.tf b/src/domains/ioweb-app/06_function_ioweb_profile.tf index fb157cee5..1fb34c987 100644 --- a/src/domains/ioweb-app/06_function_ioweb_profile.tf +++ b/src/domains/ioweb-app/06_function_ioweb_profile.tf @@ -60,7 +60,7 @@ locals { MAGIC_LINK_JWE_PRIMARY_PRIVATE_KEY = azurerm_key_vault_secret.magic_link_jwe_private_key.value MAGIC_LINK_JWE_PRIMARY_PUB_KEY = azurerm_key_vault_secret.magic_link_jwe_pub_key.value MAGIC_LINK_JWE_ISSUER = local.function_JWT_issuer - MAGIC_LINK_BASE_URL = "https://ioapp.it/blocco-accesso/magic-link" + MAGIC_LINK_BASE_URL = "https://ioapp.it/it/blocco-accesso/magic-link" // TBD: more/less than 1 week? MAGIC_LINK_JWE_TTL = "604800" From bf7d8c76b749b61ba308e4f217d5305c0328c06a Mon Sep 17 00:00:00 2001 From: gquadrati Date: Thu, 5 Oct 2023 17:30:55 +0200 Subject: [PATCH 2/3] fix CDN 404 link --- src/domains/ioweb-common/06_cdn.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/domains/ioweb-common/06_cdn.tf b/src/domains/ioweb-common/06_cdn.tf index 297fd3543..d19576b0a 100644 --- a/src/domains/ioweb-common/06_cdn.tf +++ b/src/domains/ioweb-common/06_cdn.tf @@ -19,7 +19,7 @@ module "landing_cdn" { https_rewrite_enabled = true index_document = "index.html" - error_404_document = "it/404.html" + error_404_document = "it/404/index.html" dns_zone_name = data.azurerm_dns_zone.ioapp_it.name dns_zone_resource_group_name = data.azurerm_resource_group.core_ext.name From 9f59d228892becfe2e860a37e2565b3e7bb09ce2 Mon Sep 17 00:00:00 2001 From: gquadrati Date: Fri, 6 Oct 2023 15:01:45 +0200 Subject: [PATCH 3/3] add final / to magic link path --- src/domains/ioweb-app/06_function_ioweb_profile.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/domains/ioweb-app/06_function_ioweb_profile.tf b/src/domains/ioweb-app/06_function_ioweb_profile.tf index 1fb34c987..1197b42b9 100644 --- a/src/domains/ioweb-app/06_function_ioweb_profile.tf +++ b/src/domains/ioweb-app/06_function_ioweb_profile.tf @@ -60,7 +60,7 @@ locals { MAGIC_LINK_JWE_PRIMARY_PRIVATE_KEY = azurerm_key_vault_secret.magic_link_jwe_private_key.value MAGIC_LINK_JWE_PRIMARY_PUB_KEY = azurerm_key_vault_secret.magic_link_jwe_pub_key.value MAGIC_LINK_JWE_ISSUER = local.function_JWT_issuer - MAGIC_LINK_BASE_URL = "https://ioapp.it/it/blocco-accesso/magic-link" + MAGIC_LINK_BASE_URL = "https://ioapp.it/it/blocco-accesso/magic-link/" // TBD: more/less than 1 week? MAGIC_LINK_JWE_TTL = "604800"