2025-01-17 10:51:01 +00:00
|
|
|
module "unifi_proxy" {
|
2025-01-17 10:51:30 +00:00
|
|
|
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}",
|
2025-01-17 10:51:01 +00:00
|
|
|
basic-auth-users = ["techinc"],
|
2025-01-17 10:51:30 +00:00
|
|
|
headers = { Host = "unifi.ti" }
|
2025-01-17 10:51:01 +00:00
|
|
|
}
|
|
|
|
placement_constraints = ["node.hostname == california"]
|
|
|
|
}
|
|
|
|
output "unifi_proxy" {
|
|
|
|
value = {
|
|
|
|
endpoint = module.unifi_proxy.endpoint
|
|
|
|
}
|
|
|
|
}
|