From 357da24248ef6fde3c7f4b42f3618d4368abc709 Mon Sep 17 00:00:00 2001 From: Evie Litherland-Smith Date: Fri, 26 May 2023 06:02:08 +0100 Subject: [PATCH] Add traefik config for syncthing interface --- server/syncthing.nix | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 server/syncthing.nix diff --git a/server/syncthing.nix b/server/syncthing.nix new file mode 100644 index 00000000..4af8a78b --- /dev/null +++ b/server/syncthing.nix @@ -0,0 +1,12 @@ +{...}: { + services.traefik.dynamicConfigOptions.http = { + routers.syncthing = { + rule = "Host(`syncthing.xenia.me.uk`)"; + entryPoints = ["http" "https"]; + service = "syncthing-webinterface"; + middlewares = ["auth"]; + tls = {certResolver = "default";}; + }; + services.syncthing-webinterface.loadBalander.servers = [{url = "http://localhost:8384";}]; + }; +}