Add kopia access to traefik
This commit is contained in:
@@ -128,6 +128,10 @@ http:
|
||||
stripPrefix:
|
||||
prefixes:
|
||||
- "/magic-token/{token:[A-Z0-9]+}"
|
||||
inject-kopia-basic-auth:
|
||||
headers:
|
||||
customRequestHeaders:
|
||||
Authorization: "Basic {{ with nomadVar "nomad/jobs/traefik" }}{{ .kopia_basic_auth }}{{ end }}"
|
||||
routers:
|
||||
fallback:
|
||||
rule: "HostRegexp(`^.+$`)"
|
||||
@@ -162,6 +166,12 @@ http:
|
||||
service: frigate
|
||||
middlewares:
|
||||
- auth
|
||||
kopia:
|
||||
rule: "Host(`kopia.othrayte.one`)"
|
||||
service: kopia
|
||||
middlewares:
|
||||
- auth
|
||||
- inject-kopia-basic-auth
|
||||
hass:
|
||||
rule: "Host(`hass.othrayte.one`)"
|
||||
service: hass
|
||||
@@ -192,6 +202,10 @@ http:
|
||||
loadBalancer:
|
||||
servers:
|
||||
- url: "http://192.168.1.192:5000"
|
||||
kopia:
|
||||
loadBalancer:
|
||||
servers:
|
||||
- url: "http://192.168.1.192:51515"
|
||||
hass:
|
||||
loadBalancer:
|
||||
servers:
|
||||
|
||||
Reference in New Issue
Block a user