diff options
author | Quentin Dufour <quentin@deuxfleurs.fr> | 2020-10-28 16:55:11 +0100 |
---|---|---|
committer | Quentin Dufour <quentin@deuxfleurs.fr> | 2020-10-28 16:55:11 +0100 |
commit | 03680a992b627cda620ad3a3fd1ba9c725bfc371 (patch) | |
tree | f677bd98d510faf0345133f369fc02676ffee586 /app/deployment/im.hcl | |
parent | aba3ba723ca23d2da2e6fb59700c033f2d6775c0 (diff) | |
download | infrastructure-03680a992b627cda620ad3a3fd1ba9c725bfc371.tar.gz infrastructure-03680a992b627cda620ad3a3fd1ba9c725bfc371.zip |
Switch Matrix+Plume to IPv6, Add Trusted Net to ip6tables
Diffstat (limited to 'app/deployment/im.hcl')
-rw-r--r-- | app/deployment/im.hcl | 20 |
1 files changed, 7 insertions, 13 deletions
diff --git a/app/deployment/im.hcl b/app/deployment/im.hcl index f76fb73..dfff98b 100644 --- a/app/deployment/im.hcl +++ b/app/deployment/im.hcl @@ -9,11 +9,8 @@ job "im" { config { image = "superboum/amd64_synapse:v36" + network_mode = "host" readonly_rootfs = true - port_map { - client_port = 8008 - federation_port = 8448 - } command = "python" args = [ "-m", "synapse.app.homeserver", @@ -95,16 +92,12 @@ job "im" { resources { cpu = 1000 memory = 4000 - network { - port "client_port" { } - port "federation_port" { } - } } service { name = "synapse-client" - port = "client_port" - address_mode = "host" + port = 8008 + address_mode = "driver" tags = [ "matrix", "traefik.enable=true", @@ -115,7 +108,8 @@ job "im" { ] check { type = "tcp" - port = "client_port" + port = 8008 + address_mode = "driver" interval = "60s" timeout = "5s" check_restart { @@ -128,8 +122,8 @@ job "im" { service { name = "synapse-federation" - port = "federation_port" - address_mode = "host" + port = 8448 + address_mode = "driver" tags = [ "matrix", "traefik.enable=true", |