refactor: simplify project structure
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user