diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2023-02-27 12:54:35 +0100 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2023-02-27 12:54:35 +0100 |
commit | 811e75e8ff711c1c2d176cafb987eb94581010fa (patch) | |
tree | 4d0a2026c81136819be85dabe4444d2ccd1c18eb | |
parent | 429e5a5bf6193fa5a0448f29c43fda3fb326bdcc (diff) | |
download | infra-811e75e8ff711c1c2d176cafb987eb94581010fa.tar.gz infra-811e75e8ff711c1c2d176cafb987eb94581010fa.tar.bz2 infra-811e75e8ff711c1c2d176cafb987eb94581010fa.tar.xz infra-811e75e8ff711c1c2d176cafb987eb94581010fa.zip |
unifi-controller: fmt
-rw-r--r-- | terraform/unifi-controller/unifi.tf | 26 |
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"] |