Add traefik config for syncthing interface

This commit is contained in:
Evie Litherland-Smith 2023-05-26 06:02:08 +01:00
parent 6906aa349b
commit 357da24248

12
server/syncthing.nix Normal file
View file

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