Route to traefik directly via localhost due to in ability to route via the external port
This commit is contained in:
@@ -31,14 +31,6 @@ job "traefik" {
|
||||
name = "traefik"
|
||||
port = "api"
|
||||
|
||||
tags = [
|
||||
"traefik.enable=true",
|
||||
"traefik.http.routers.traefik.rule=Host(`traefik.othrayte.one`)",
|
||||
"traefik.http.routers.traefik.service=traefik",
|
||||
"traefik.http.routers.traefik.middlewares=auth@file",
|
||||
"traefik.http.services.traefik.loadbalancer.server.port=8081",
|
||||
]
|
||||
|
||||
check {
|
||||
name = "alive"
|
||||
type = "tcp"
|
||||
@@ -145,6 +137,11 @@ http:
|
||||
- auth
|
||||
service: noop@internal # This router just applies middleware
|
||||
priority: 1
|
||||
traefik:
|
||||
rule: "Host(`traefik.othrayte.one`)"
|
||||
service: traefik
|
||||
middlewares:
|
||||
- auth
|
||||
nomad-ui:
|
||||
rule: "Host(`nomad.othrayte.one`)"
|
||||
service: nomad-ui
|
||||
@@ -175,6 +172,10 @@ http:
|
||||
service: hass
|
||||
|
||||
services:
|
||||
traefik:
|
||||
loadBalancer:
|
||||
servers:
|
||||
- url: "http://localhost:8081"
|
||||
nomad-ui:
|
||||
loadBalancer:
|
||||
servers:
|
||||
|
||||
Reference in New Issue
Block a user