Add kopia access to traefik

This commit is contained in:
2025-10-14 20:10:32 +11:00
parent 3cc6f4827d
commit 2d931f9cfa
3 changed files with 20 additions and 4 deletions

View File

@@ -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: