From 1fee0441e817483bd20bda370d3a87d3eb37feef Mon Sep 17 00:00:00 2001 From: Quentin Dufour Date: Mon, 9 Mar 2020 14:11:24 +0100 Subject: [frontend,matrix] finally fix order bug with traefik by assigning priorities --- nomad/chat.hcl | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) (limited to 'nomad/chat.hcl') diff --git a/nomad/chat.hcl b/nomad/chat.hcl index 812f009..042e619 100644 --- a/nomad/chat.hcl +++ b/nomad/chat.hcl @@ -12,6 +12,7 @@ job "chat" { readonly_rootfs = true port_map { client_port = 8008 + federation_port = 8448 } command = "python" args = [ @@ -96,18 +97,20 @@ job "chat" { memory = 4000 network { port "client_port" { } + port "federation_port" { } } } service { - name = "synapse" + name = "synapse-client" port = "client_port" address_mode = "host" tags = [ "matrix", "traefik.enable=true", "traefik.frontend.entryPoints=https", - "traefik.frontend.rule=Host:im.deuxfleurs.fr,deuxfleurs.fr;PathPrefix:/_matrix" + "traefik.frontend.rule=Host:im.deuxfleurs.fr;PathPrefix:/_matrix", + "traefik.frontend.priority=100" ] check { type = "tcp" @@ -121,6 +124,20 @@ job "chat" { } } } + + service { + name = "synapse-federation" + port = "federation_port" + address_mode = "host" + tags = [ + "matrix", + "traefik.enable=true", + "traefik.frontend.entryPoints=https", + "traefik.frontend.rule=Host:deuxfleurs.fr;PathPrefix:/_matrix", + "traefik.frontend.priority=100" + ] + } + } } -- cgit v1.2.3