about summary refs log tree commit diff
path: root/bundles/syncthing/files/traefik.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'bundles/syncthing/files/traefik.yaml')
-rw-r--r--bundles/syncthing/files/traefik.yaml22
1 files changed, 22 insertions, 0 deletions
diff --git a/bundles/syncthing/files/traefik.yaml b/bundles/syncthing/files/traefik.yaml
new file mode 100644
index 0000000..884f77f
--- /dev/null
+++ b/bundles/syncthing/files/traefik.yaml
@@ -0,0 +1,22 @@
+http:
+  services:
+    syncthing-gui:
+      loadBalancer:
+        servers:
+          - url: http://${node.metadata.get("container_gateway", "10.89.0.1")}:8384
+
+  routers:
+    syncthing-gui:
+% if node.name == "inazuma":
+      rule: Host(`syncthing.iz.ts.gzr.im`)
+% elif node.name == "shimakaze":
+      rule: Host(`syncthing.sk.ts.gzr.im`)
+% endif
+      entryPoints:
+        - http
+        # - https
+      service: syncthing-gui
+      # middlewares:
+      #   - tls-redirect@file
+      # tls:
+      #   certResolver: le