refactor: simplify project structure

This commit is contained in:
Yuris Cakranegara
2025-06-07 14:58:28 +10:00
parent 3ed0b402f5
commit c4775366e8
42 changed files with 441 additions and 1024 deletions

View File

@@ -1,5 +1,4 @@
// Variables for the Cloudflare tunnel module
variable "cloudflare_account_id" {
description = "Cloudflare account ID"
type = string
@@ -10,6 +9,11 @@ variable "cloudflare_zone_id" {
type = string
}
variable "domain" {
description = "The domain name to use for creating DNS records"
type = string
}
variable "container_name" {
description = "Name of the Cloudflare tunnel container"
type = string
@@ -35,7 +39,7 @@ variable "tunnel_secret" {
}
variable "ingress_rules" {
description = "List of ingress rules for services to be exposed through the tunnel"
description = "List of ingress rules to configure manually"
type = list(object({
hostname = string
service = string
@@ -43,6 +47,17 @@ variable "ingress_rules" {
default = []
}
variable "service_definitions" {
description = "List of service definitions containing name, endpoints and hostname configuration"
type = list(object({
name = string
primary_port = number
endpoint = string
hostnames = optional(list(string), [])
}))
default = []
}
variable "monitoring" {
description = "Enable monitoring via Watchtower"
type = bool