Add Period site

This commit is contained in:
Alexander Hosking 2022-04-23 14:13:02 -04:00
parent c710bacd69
commit 0c460cad19

View File

@ -66,3 +66,28 @@ resource "cloudflare_access_application" "tv" {
"f27ba272-b676-4ab0-b560-e4ea52b19f18", #TODO: Remove Manual Entry
]
}
resource "cloudflare_access_application" "period" {
account_id = var.CLOUDFLARE_ACCOUNT_ID
name = "period"
domain = "period.ahosking.com"
type = "self_hosted"
session_duration = "336h"
allowed_idps = [
"f27ba272-b676-4ab0-b560-e4ea52b19f18", #TODO: Remove Manual Entry
]
}
resource "cloudflare_access_policy" "period" {
application_id = cloudflare_access_application.period.id
zone_id = cloudflare_zone.ahosking_com.id
name = "family"
precedence = "1"
decision = "allow"
include {
email_domain = ["@ahosking.com"]
}
require {
email_domain = ["@ahosking.com"]
}
}