rework to use socket-proxy
This commit is contained in:
parent
74a30b3194
commit
7b22ea4ab2
2 changed files with 25 additions and 7 deletions
|
@ -6,7 +6,7 @@ module "unifi_proxy" {
|
|||
traefik = {
|
||||
domain = "unifi.${var.base_domain}",
|
||||
basic-auth-users = ["techinc"],
|
||||
headers = {Host = "unifi.ti"}
|
||||
headers = { Host = "unifi.ti" }
|
||||
}
|
||||
placement_constraints = ["node.hostname == california"]
|
||||
}
|
||||
|
|
18
service.test.tf
Normal file
18
service.test.tf
Normal 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
|
||||
}
|
Loading…
Reference in a new issue