From acb3884ea09a719a42079d294059dd9a5c525451 Mon Sep 17 00:00:00 2001 From: Teck Meng Date: Mon, 6 May 2024 16:42:59 +0800 Subject: [PATCH] chore: Update Traefik configuration to include syncthing service and adjust routing rules --- compose/traefik/traefik.yml | 14 ++++++++++++++ production.yml | 18 ++++++++++++++++++ 2 files changed, 32 insertions(+) diff --git a/compose/traefik/traefik.yml b/compose/traefik/traefik.yml index 41e322f..3cdd77e 100644 --- a/compose/traefik/traefik.yml +++ b/compose/traefik/traefik.yml @@ -297,6 +297,16 @@ http: tls: certResolver: letsencrypt + syncthing-router: + rule: "Host(`sync.furyhawk.lol`)" + entryPoints: + - web-secure + middlewares: + - csrf + service: syncthing_app + tls: + certResolver: letsencrypt + bai-router: rule: "Host(`bai.furyhawk.lol`)" entryPoints: @@ -496,6 +506,10 @@ http: loadBalancer: servers: - url: http://mqttx_web:80 + syncthing_app: + loadBalancer: + servers: + - url: http://syncthing:8384 streamlit_bai_app: loadBalancer: servers: diff --git a/production.yml b/production.yml index de80e18..f62fce0 100644 --- a/production.yml +++ b/production.yml @@ -258,6 +258,24 @@ services: - net - default + syncthing: + image: syncthing/syncthing + container_name: syncthing + environment: + - PUID=1000 + - PGID=1000 + restart: unless-stopped + volumes: + - ~/st-sync:/var/syncthing + ports: + - 8384:8384 # Web UI + - 22000:22000/tcp # TCP file transfers + - 22000:22000/udp # QUIC file transfers + - 21027:21027/udp # Receive local discovery broadcasts + networks: + - net + - default + thelounge: image: ghcr.io/thelounge/thelounge:latest container_name: thelounge