Skip to content

Commit

Permalink
feat: get immich (#325)
Browse files Browse the repository at this point in the history
  • Loading branch information
jrasm91 authored Jan 3, 2025
1 parent 2e16552 commit bce5d5e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tf/deployment/modules/cloudflare/account/pages-project.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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" {
Expand Down
4 changes: 2 additions & 2 deletions tf/deployment/modules/cloudflare/account/redirects.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand All @@ -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
}
Expand Down

0 comments on commit bce5d5e

Please sign in to comment.