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";}]; + }; +}