Compare commits
No commits in common. "a3b8b89a3bbca2850f85ad7a6504eb7436503202" and "0f46a89e4063838437f84a8bc57006316d19b80d" have entirely different histories.
a3b8b89a3b
...
0f46a89e40
@ -1,12 +1,3 @@
|
||||
resource "cloudflare_access_group" "family" {
|
||||
account_id = var.CLOUDFLARE_ACCOUNT_ID
|
||||
name = "family group"
|
||||
|
||||
include {
|
||||
email_domain = ["@ahosking.com"]
|
||||
}
|
||||
}
|
||||
|
||||
resource "cloudflare_access_application" "influx" {
|
||||
account_id = var.CLOUDFLARE_ACCOUNT_ID
|
||||
name = "influx"
|
||||
@ -31,20 +22,6 @@ resource "cloudflare_access_application" "money" {
|
||||
]
|
||||
}
|
||||
|
||||
resource "cloudflare_access_policy" "money" {
|
||||
application_id = cloudflare_access_application.money.id
|
||||
zone_id = cloudflare_zone.ahosking_com.id
|
||||
name = "family"
|
||||
precedence = "1"
|
||||
decision = "allow"
|
||||
include {
|
||||
email_domain = ["@ahosking.com"]
|
||||
}
|
||||
require {
|
||||
email_domain = ["@ahosking.com"]
|
||||
}
|
||||
}
|
||||
|
||||
resource "cloudflare_access_application" "movies" {
|
||||
account_id = var.CLOUDFLARE_ACCOUNT_ID
|
||||
name = "movies"
|
||||
@ -66,28 +43,3 @@ 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"]
|
||||
}
|
||||
}
|
||||
|
@ -4,14 +4,6 @@ resource "cloudflare_zone" "automatedbytes_com" {
|
||||
zone = "automatedbytes.com"
|
||||
}
|
||||
|
||||
resource "cloudflare_record" "automatedbytes" {
|
||||
zone_id = cloudflare_zone.automatedbytes_com.id
|
||||
name = "automatedbytes.com"
|
||||
type = "A"
|
||||
ttl = "1"
|
||||
value = var.home_ip
|
||||
}
|
||||
|
||||
resource "cloudflare_record" "assets_automatedbytes" {
|
||||
zone_id = cloudflare_zone.automatedbytes_com.id
|
||||
name = "assets"
|
||||
|
@ -37,5 +37,5 @@ variable "environment" {}
|
||||
|
||||
variable "ahosking_com_cnames" {
|
||||
default = ["code", "radarr", "sonarr", "ombi", "git",
|
||||
"monitors", "tv", "movies", "money", "period"]
|
||||
"monitors", "tv", "movies", "money"]
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user