about summary refs log tree commit diff
path: root/bundles/traefik/files/common-middlewares.yaml
diff options
context:
space:
mode:
authorRobert Günzler <r@gnzler.io>2026-02-23 14:10:11 +0100
committerRobert Günzler <r@gnzler.io>2026-02-23 14:10:11 +0100
commit090a357ef46473e76b0cd0e0e1b013e6080a7360 (patch)
tree1452cc1b553c7e8688c240c7b9730e723c81f0ff /bundles/traefik/files/common-middlewares.yaml
parent7663c3a87167b59c706bd4ec0cf708402aa7fe46 (diff)
refactor traefik middlewares into separate files
Signed-off-by: Robert Günzler <r@gnzler.io>
Diffstat (limited to 'bundles/traefik/files/common-middlewares.yaml')
-rw-r--r--bundles/traefik/files/common-middlewares.yaml30
1 files changed, 30 insertions, 0 deletions
diff --git a/bundles/traefik/files/common-middlewares.yaml b/bundles/traefik/files/common-middlewares.yaml
new file mode 100644
index 0000000..5f2cb2e
--- /dev/null
+++ b/bundles/traefik/files/common-middlewares.yaml
@@ -0,0 +1,30 @@
+http:
+  middlewares:
+
+    # metrics
+    replacepath-bare:
+      replacepath:
+        path: /
+    replacepath-metrics:
+      replacepath:
+        path: /metrics
+
+    # authelia
+    authelia:
+      forwardAuth:
+        trustForwardHeader: true
+        authResponseHeaders: Remote-User,Remote-Groups,Remote-Email,Remote-Name
+% if node.name == "inazuma":
+        address: http://authelia:9091/api/authz/forward-auth
+% elif node.name == "shimakaze":
+        address: http://inazuma:9091/api/authz/forward-auth
+% endif
+
+% if node.name == "inazuma--TODO":
+    # tsauth
+    tsauth:
+      forwardAuth:
+        trustForwardHeader: true
+        authResponseHeaders: ^Tailscale-
+        address: http://localhost:3000
+% endif