diff --git a/ahoskingit/terraform/cloudflare_access.tf b/ahoskingit/terraform/cloudflare_access.tf index 57291c7..f1ae019 100644 --- a/ahoskingit/terraform/cloudflare_access.tf +++ b/ahoskingit/terraform/cloudflare_access.tf @@ -1,7 +1,45 @@ +resource "cloudflare_access_application" "influx" { + account_id = var.CLOUDFLARE_ACCOUNT_ID + name = "influx" + domain = "influx.ahoskingit.com" + type = "self_hosted" + session_duration = "168h" + logo_url = "https://external-content.duckduckgo.com/iu/?u=https%3A%2F%2Fupload.wikimedia.org%2Fwikipedia%2Fcommons%2Fthumb%2Fc%2Fc6%2FInfluxdb_logo.svg%2F1920px-Influxdb_logo.svg" + allowed_idps = [ + "f27ba272-b676-4ab0-b560-e4ea52b19f18", #TODO: Remove Manual Entry + "ba68cb89-c20b-49ab-8aea-26b3af318196", #TODO: Remove Manual Entry + ] +} + resource "cloudflare_access_application" "money" { account_id = var.CLOUDFLARE_ACCOUNT_ID name = "money" domain = "money.ahosking.com" type = "self_hosted" - session_duration = "168h" + session_duration = "336h" + allowed_idps = [ + "f27ba272-b676-4ab0-b560-e4ea52b19f18", #TODO: Remove Manual Entry + ] } + +resource "cloudflare_access_application" "movies" { + account_id = var.CLOUDFLARE_ACCOUNT_ID + name = "movies" + domain = "movies.ahosking.com" + type = "self_hosted" + session_duration = "336h" + allowed_idps = [ + "f27ba272-b676-4ab0-b560-e4ea52b19f18", #TODO: Remove Manual Entry + ] +} + +resource "cloudflare_access_application" "tv" { + account_id = var.CLOUDFLARE_ACCOUNT_ID + name = "tv" + domain = "tv.ahosking.com" + type = "self_hosted" + session_duration = "336h" + allowed_idps = [ + "f27ba272-b676-4ab0-b560-e4ea52b19f18", #TODO: Remove Manual Entry + ] +} \ No newline at end of file diff --git a/ahoskingit/terraform/variables.tf b/ahoskingit/terraform/variables.tf index cc32ef3..131555e 100644 --- a/ahoskingit/terraform/variables.tf +++ b/ahoskingit/terraform/variables.tf @@ -37,5 +37,5 @@ variable "environment" {} variable "ahosking_com_cnames" { default = ["code", "radarr", "sonarr", "ombi", "git", - "monitors", "tv", "movies", "finance"] + "monitors", "tv", "movies", "money"] }