diff --git a/service.proxies.tf b/service.proxies.tf index 3328203..57285bb 100644 --- a/service.proxies.tf +++ b/service.proxies.tf @@ -1,12 +1,12 @@ 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}", + 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"} + headers = { Host = "unifi.ti" } } placement_constraints = ["node.hostname == california"] } diff --git a/service.test.tf b/service.test.tf new file mode 100644 index 0000000..81f61c1 --- /dev/null +++ b/service.test.tf @@ -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 +}