Adds CF Access and updates DNS
This commit is contained in:
parent
368cd72671
commit
0f46a89e40
@ -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" {
|
resource "cloudflare_access_application" "money" {
|
||||||
account_id = var.CLOUDFLARE_ACCOUNT_ID
|
account_id = var.CLOUDFLARE_ACCOUNT_ID
|
||||||
name = "money"
|
name = "money"
|
||||||
domain = "money.ahosking.com"
|
domain = "money.ahosking.com"
|
||||||
type = "self_hosted"
|
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
|
||||||
|
]
|
||||||
|
}
|
@ -37,5 +37,5 @@ variable "environment" {}
|
|||||||
|
|
||||||
variable "ahosking_com_cnames" {
|
variable "ahosking_com_cnames" {
|
||||||
default = ["code", "radarr", "sonarr", "ombi", "git",
|
default = ["code", "radarr", "sonarr", "ombi", "git",
|
||||||
"monitors", "tv", "movies", "finance"]
|
"monitors", "tv", "movies", "money"]
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user