rework to use socket-proxy

This commit is contained in:
Greyscale 2025-01-17 11:51:30 +01:00
parent 74a30b3194
commit 7b22ea4ab2
Signed by: grey
GPG key ID: DDB392AE64B32D89
2 changed files with 25 additions and 7 deletions

View file

@ -6,7 +6,7 @@ module "unifi_proxy" {
traefik = { traefik = {
domain = "unifi.${var.base_domain}", domain = "unifi.${var.base_domain}",
basic-auth-users = ["techinc"], basic-auth-users = ["techinc"],
headers = {Host = "unifi.ti"} headers = { Host = "unifi.ti" }
} }
placement_constraints = ["node.hostname == california"] placement_constraints = ["node.hostname == california"]
} }

18
service.test.tf Normal file
View file

@ -0,0 +1,18 @@
module "test" {
source = "./lib/grey.ooo/docker/service"
stack_name = "test"
service_name = "hello"
image = "nginxdemos/hello:plain-text"
parallelism = 5
traefik = {
domain = "test.${var.base_domain}"
port = 80
ssl = true
non-ssl = true
#basic-auth-users = ["test"]
}
}
output "test" {
value = module.test.endpoint
}