From 62f75ec67ccf08ad75a15910cf1e73b4d9bafefd Mon Sep 17 00:00:00 2001 From: Ben Martin Date: Tue, 15 Apr 2025 20:32:11 +0000 Subject: [PATCH] chore(jmc): onboard to traefiks connect-enabled provider --- .../jobspec.nomad.hcl | 31 ++----------------- 1 file changed, 2 insertions(+), 29 deletions(-) diff --git a/modules/jayne-martin-counselling/jobspec.nomad.hcl b/modules/jayne-martin-counselling/jobspec.nomad.hcl index 78c1d28..e5e683a 100644 --- a/modules/jayne-martin-counselling/jobspec.nomad.hcl +++ b/modules/jayne-martin-counselling/jobspec.nomad.hcl @@ -50,41 +50,14 @@ job "jayne-martin-counselling" { } } } - } - } - group "webserver-ingress-group" { - - network { - mode = "bridge" - port "inbound" { - to = 8080 - } - } - - service { - port = "inbound" tags = [ "traefik.enable=true", "traefik.http.routers.jmc.rule=Host(`www.jaynemartincounselling.co.uk`)", - "traefik.http.routers.jmc.entrypoints=websecure" + "traefik.http.routers.jmc.entrypoints=websecure", + "traefik.consulcatalog.connect=true", ] - - connect { - gateway { - ingress { - listener { - port = 8080 - protocol = "http" - service { - name = "jayne-martin-counselling-webserver" - hosts = ["*"] - } - } - } - } - } } } }