aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--terraform/unifi-controller/unifi.tf26
1 files changed, 13 insertions, 13 deletions
diff --git a/terraform/unifi-controller/unifi.tf b/terraform/unifi-controller/unifi.tf
index 399e586..c1ed4d7 100644
--- a/terraform/unifi-controller/unifi.tf
+++ b/terraform/unifi-controller/unifi.tf
@@ -16,9 +16,9 @@ resource "docker_volume" "unifi-controller" {
}
resource "docker_container" "unifi-controller" {
- image = docker_image.unifi-controller.image_id
- name = "unifi-controller"
- hostname = "unifi-controller"
+ image = docker_image.unifi-controller.image_id
+ name = "unifi-controller"
+ hostname = "unifi-controller"
# privileged = true
# must_run = false
@@ -28,17 +28,17 @@ resource "docker_container" "unifi-controller" {
dynamic "ports" {
for_each = [
- { port = 161, proto = "udp" },
- { port = 3478, proto = "udp" },
- { port = 6789, proto = "tcp" },
- { port = 8081, proto = "tcp" },
- { port = 8080, proto = "tcp" }, # not used, we have configured it to 9080
- { port = 9080, proto = "tcp" },
- { port = 8880, proto = "tcp" },
- { port = 8443, proto = "tcp" },
+ { port = 161, proto = "udp" },
+ { port = 3478, proto = "udp" },
+ { port = 6789, proto = "tcp" },
+ { port = 8081, proto = "tcp" },
+ { port = 8080, proto = "tcp" }, # not used, we have configured it to 9080
+ { port = 9080, proto = "tcp" },
+ { port = 8880, proto = "tcp" },
+ { port = 8443, proto = "tcp" },
{ port = 10001, proto = "udp" },
-# { port = 8843, proto = "tcp" }, web ui
+ # { port = 8843, proto = "tcp" }, web ui
]
content {
internal = ports.value["port"]
@@ -61,7 +61,7 @@ resource "docker_container" "unifi-controller" {
{ label = "traefik.http.routers.unifi-controller.tls.certresolver", value = "linode" },
{ label = "traefik.http.services.unifi-controller.loadbalancer.server.port", value = "8443" },
{ label = "traefik.http.services.unifi-controller.loadbalancer.server.scheme", value = "https" },
-# { label = "traefik.http.services.unifi-controller.loadbalancer.passHostHeader", value = "false" },
+ # { label = "traefik.http.services.unifi-controller.loadbalancer.passHostHeader", value = "false" },
]
content {
label = labels.value["label"]