IAC/service.proxies.tf

17 lines
No EOL
474 B
HCL

module "unifi_proxy" {
source = "./lib/grey.ooo/products/socket-proxy"
stack_name = "proxy"
service_name = "unifi"
target = { host = "unifi.ti", port = 8080 }
traefik = {
domain = "unifi.${var.base_domain}",
basic-auth-users = ["techinc"],
headers = { Host = "unifi.ti" }
}
placement_constraints = ["node.hostname == california"]
}
output "unifi_proxy" {
value = {
endpoint = module.unifi_proxy.endpoint
}
}