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"
|
name = "traefik"
|
||||||
port = "api"
|
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 {
|
check {
|
||||||
name = "alive"
|
name = "alive"
|
||||||
type = "tcp"
|
type = "tcp"
|
||||||
@@ -145,6 +137,11 @@ http:
|
|||||||
- auth
|
- auth
|
||||||
service: noop@internal # This router just applies middleware
|
service: noop@internal # This router just applies middleware
|
||||||
priority: 1
|
priority: 1
|
||||||
|
traefik:
|
||||||
|
rule: "Host(`traefik.othrayte.one`)"
|
||||||
|
service: traefik
|
||||||
|
middlewares:
|
||||||
|
- auth
|
||||||
nomad-ui:
|
nomad-ui:
|
||||||
rule: "Host(`nomad.othrayte.one`)"
|
rule: "Host(`nomad.othrayte.one`)"
|
||||||
service: nomad-ui
|
service: nomad-ui
|
||||||
@@ -175,6 +172,10 @@ http:
|
|||||||
service: hass
|
service: hass
|
||||||
|
|
||||||
services:
|
services:
|
||||||
|
traefik:
|
||||||
|
loadBalancer:
|
||||||
|
servers:
|
||||||
|
- url: "http://localhost:8081"
|
||||||
nomad-ui:
|
nomad-ui:
|
||||||
loadBalancer:
|
loadBalancer:
|
||||||
servers:
|
servers:
|
||||||
|
|||||||
Reference in New Issue
Block a user