about summary refs log tree commit diff
path: root/bundles/syncthing/files/traefik.yaml
blob: 884f77f63d30a1ea7bb83de0558771a72e9101b5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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