diff --git a/modules/media-centre/jobspec.nomad.hcl b/modules/media-centre/jobspec.nomad.hcl index 3810e8f..4faa3e9 100644 --- a/modules/media-centre/jobspec.nomad.hcl +++ b/modules/media-centre/jobspec.nomad.hcl @@ -97,6 +97,14 @@ job "media-centre" { } } } + + tags = [ + "traefik.enable=true", + + "traefik.http.routers.plex.entrypoints=websecure", + "traefik.http.routers.plex.rule=Host(`plex.brmartin.co.uk`)", + "traefik.consulcatalog.connect=true", + ] } network { @@ -152,39 +160,4 @@ job "media-centre" { } } } - - group "plex-ingress-group" { - - network { - mode = "bridge" - port "inbound" { - to = 8080 - } - } - - service { - port = "inbound" - tags = [ - "traefik.enable=true", - - "traefik.http.routers.plex.entrypoints=websecure", - "traefik.http.routers.plex.rule=Host(`plex.brmartin.co.uk`)" - ] - - connect { - gateway { - ingress { - listener { - port = 8080 - protocol = "http" - service { - name = "media-centre-plex" - hosts = ["*"] - } - } - } - } - } - } - } }