Merge branch 'master' of gitlab.com:Automatedbytes/orchestration-clouds

This commit is contained in:
Alexander Hosking 2022-12-30 17:32:30 -05:00
commit 81e8eba70b
5 changed files with 26 additions and 18 deletions

View File

@ -6,6 +6,7 @@ provider "registry.terraform.io/cloudflare/cloudflare" {
constraints = "~> 3.0" constraints = "~> 3.0"
hashes = [ hashes = [
"h1:oTTfUShNNcDCOxlXP2XiNleQYHmWswesQFCuicwQztw=", "h1:oTTfUShNNcDCOxlXP2XiNleQYHmWswesQFCuicwQztw=",
"h1:pb7gfJMtamHcmsNTAdB4V6iYWuXFLx3CErxqx2f+DXs=",
"zh:0dd08c3336b3198e30158b61605674eefbc0b8e331ad8f25322ce1889fd2d8a7", "zh:0dd08c3336b3198e30158b61605674eefbc0b8e331ad8f25322ce1889fd2d8a7",
"zh:196d80c7ae594f1b6140de02ecb101ec1afd7e45877be849ace73866f3fcb689", "zh:196d80c7ae594f1b6140de02ecb101ec1afd7e45877be849ace73866f3fcb689",
"zh:37bc087b5e858a92faf03c994cfbc4c906b0afecb7df2ff25961b394f3013cc0", "zh:37bc087b5e858a92faf03c994cfbc4c906b0afecb7df2ff25961b394f3013cc0",
@ -28,6 +29,7 @@ provider "registry.terraform.io/hashicorp/aws" {
constraints = "~> 3.0" constraints = "~> 3.0"
hashes = [ hashes = [
"h1:++H0a4igODgreQL3SJuRz71JZkC69rl41R8xLYM894o=", "h1:++H0a4igODgreQL3SJuRz71JZkC69rl41R8xLYM894o=",
"h1:OuaWibxL7IoGHmX6xuhO2XvYJcr+DJNr9pnVjaUiMrw=",
"zh:11c2ee541ca1da923356c9225575ba294523d7b6af82d6171c912470ef0f90cd", "zh:11c2ee541ca1da923356c9225575ba294523d7b6af82d6171c912470ef0f90cd",
"zh:19fe975993664252b4a2ff1079546f2b186b01d1a025a94a4f15c37e023806c5", "zh:19fe975993664252b4a2ff1079546f2b186b01d1a025a94a4f15c37e023806c5",
"zh:442e7fc145b2debebe9279b283d07f5f736dc1776c2e5b1702728a6eb03789d0", "zh:442e7fc145b2debebe9279b283d07f5f736dc1776c2e5b1702728a6eb03789d0",

View File

@ -1,6 +1,6 @@
resource "cloudflare_access_group" "family" { resource "cloudflare_access_group" "family" {
account_id = var.CLOUDFLARE_ACCOUNT_ID account_id = var.CLOUDFLARE_ACCOUNT_ID
name = "family group" name = "family group"
include { include {
email_domain = ["@ahosking.com"] email_domain = ["@ahosking.com"]
@ -13,7 +13,7 @@ resource "cloudflare_access_application" "influx" {
domain = "influx.ahoskingit.com" domain = "influx.ahoskingit.com"
type = "self_hosted" type = "self_hosted"
session_duration = "168h" 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" 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 = [ allowed_idps = [
"f27ba272-b676-4ab0-b560-e4ea52b19f18", #TODO: Remove Manual Entry "f27ba272-b676-4ab0-b560-e4ea52b19f18", #TODO: Remove Manual Entry
"ba68cb89-c20b-49ab-8aea-26b3af318196", #TODO: Remove Manual Entry "ba68cb89-c20b-49ab-8aea-26b3af318196", #TODO: Remove Manual Entry
@ -29,14 +29,16 @@ resource "cloudflare_access_application" "money" {
allowed_idps = [ allowed_idps = [
"f27ba272-b676-4ab0-b560-e4ea52b19f18", #TODO: Remove Manual Entry "f27ba272-b676-4ab0-b560-e4ea52b19f18", #TODO: Remove Manual Entry
] ]
http_only_cookie_attribute = true
} }
resource "cloudflare_access_policy" "money" { resource "cloudflare_access_policy" "money" {
application_id = cloudflare_access_application.money.id application_id = cloudflare_access_application.money.id
zone_id = cloudflare_zone.ahosking_com.id zone_id = cloudflare_zone.ahosking_com.id
name = "family" name = "family"
precedence = "1" precedence = "2"
decision = "allow" decision = "allow"
include { include {
email_domain = ["@ahosking.com"] email_domain = ["@ahosking.com"]
} }
@ -67,23 +69,25 @@ resource "cloudflare_access_application" "tv" {
] ]
} }
resource "cloudflare_access_application" "period" { resource "cloudflare_access_application" "cycles" {
account_id = var.CLOUDFLARE_ACCOUNT_ID account_id = var.CLOUDFLARE_ACCOUNT_ID
name = "period" name = "cycles"
domain = "period.ahosking.com" domain = "cycles.ahosking.com"
type = "self_hosted" type = "self_hosted"
session_duration = "336h" session_duration = "336h"
allowed_idps = [ allowed_idps = [
"f27ba272-b676-4ab0-b560-e4ea52b19f18", #TODO: Remove Manual Entry "f27ba272-b676-4ab0-b560-e4ea52b19f18", #TODO: Remove Manual Entry
] ]
http_only_cookie_attribute = true
} }
resource "cloudflare_access_policy" "period" { resource "cloudflare_access_policy" "cycles" {
application_id = cloudflare_access_application.period.id application_id = cloudflare_access_application.cycles.id
zone_id = cloudflare_zone.ahosking_com.id zone_id = cloudflare_zone.ahosking_com.id
name = "family" name = "family"
precedence = "1" precedence = "1"
decision = "allow" decision = "allow"
include { include {
email_domain = ["@ahosking.com"] email_domain = ["@ahosking.com"]
} }

View File

@ -1 +1 @@
home_ip = "174.91.157.243" home_ip = "184.147.40.112"

View File

@ -37,5 +37,6 @@ 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", "money", "cycles", "plex"] "monitors", "tv", "movies", "money", "cycles", "plex",
"minecraft", "homeassistant", "slack", "status", "bills"]
} }

View File

@ -22,7 +22,8 @@
"activityBar.activeBackground": "#ef7853", "activityBar.activeBackground": "#ef7853",
"sash.hoverBorder": "#ef7853", "sash.hoverBorder": "#ef7853",
"statusBarItem.remoteBackground": "#eb5424", "statusBarItem.remoteBackground": "#eb5424",
"statusBarItem.remoteForeground": "#e7e7e7" "statusBarItem.remoteForeground": "#e7e7e7",
"commandCenter.border": "#e7e7e799"
}, },
"peacock.color": "#eb5424" "peacock.color": "#eb5424"
} }