1
Files
2026-02-03 18:10:21 +01:00

101 lines
1.8 KiB
HCL

variable "domain" {
type = string
default = ""
}
variable "http3" {
type = bool
default = true
}
variable "backend" {
type = string
default = ""
}
variable "backend_port" {
type = number
default = 443
}
variable "backend_ssl" {
type = bool
default = true
}
variable "backend_ssl_check" {
type = bool
default = true
}
variable "backend_cert_hostname" {
type = string
default = ""
}
variable "gzip_extensions" {
type = list
default = ["css", "js", "html", "htm", "txt", "json", "xml", "woff", "woff2"]
}
variable "gzip_content_types" {
type = list
default = ["text/html", "text/plain", "text/css", "application/javascript", "application/json", "application/xml", "application/x-javascript", "text/javascript", "text/xml", "application/rss+xml", "image/svg+xml", "application/wasm", "font/woff2"]
}
variable "default_ttl" {
type = number
default = 3600
}
variable "stale_ttl" {
type = number
default = 86400
}
variable "cache_override" {
type = bool
default = true
}
variable "enable_logging" {
type = bool
default = false
}
variable "log_format" {
type = string
default = "%h %l %u %t \"%r\" %>s %b"
}
variable "enable_waf" {
type = bool
default = false
}
variable "allowed_cors_domains" {
type = list(string)
default = []
}
variable "enable_brotli" {
type = bool
default = true
}
variable "enable_image_optimization" {
type = bool
default = false
}
variable "force_destroy" {
type = bool
default = true
}
variable "purge_allowed_ips" {
type = list(string)
description = "List of IP addresses/CIDR blocks allowed to send PURGE requests"
default = []
}