From bce5d5edd3ec4fa6a83652d4a111785950462409 Mon Sep 17 00:00:00 2001 From: Jason Rasmussen Date: Fri, 3 Jan 2025 08:50:17 -0500 Subject: [PATCH] feat: get immich (#325) --- tf/deployment/modules/cloudflare/account/pages-project.tf | 2 +- tf/deployment/modules/cloudflare/account/redirects.tf | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tf/deployment/modules/cloudflare/account/pages-project.tf b/tf/deployment/modules/cloudflare/account/pages-project.tf index 5f7d8b28..16ea2322 100644 --- a/tf/deployment/modules/cloudflare/account/pages-project.tf +++ b/tf/deployment/modules/cloudflare/account/pages-project.tf @@ -43,7 +43,7 @@ output "immich_app_preview_pages_project_subdomain" { } locals { - static_pages = ["my.immich.app", "buy.immich.app", "data.immich.app"] + static_pages = ["my.immich.app", "buy.immich.app", "get.immich.app", "data.immich.app"] } resource "cloudflare_pages_project" "static_pages" { diff --git a/tf/deployment/modules/cloudflare/account/redirects.tf b/tf/deployment/modules/cloudflare/account/redirects.tf index 89b80ab8..764ba7a7 100644 --- a/tf/deployment/modules/cloudflare/account/redirects.tf +++ b/tf/deployment/modules/cloudflare/account/redirects.tf @@ -48,7 +48,7 @@ resource "cloudflare_ruleset" "immich_app_redirects" { preserve_query_string = false } } - expression = "(http.host wildcard \"get.immich.app\" and http.user_agent wildcard r\"*Android*\")" + expression = "(http.host wildcard \"get.immich.app\" and http.request.uri.path matches \"^/$\" and http.user_agent wildcard r\"*Android*\")" description = "Redirect get.immich.app android users to the Play Store" enabled = true } @@ -64,7 +64,7 @@ resource "cloudflare_ruleset" "immich_app_redirects" { preserve_query_string = false } } - expression = "(http.host wildcard \"get.immich.app\")" + expression = "(http.host wildcard \"get.immich.app\" and http.request.uri.path matches \"^/$\")" description = "Redirect get.immich.app iPhone users to the App Store" enabled = true }