nixos/services/traefik/syncthing.nix

14 lines
419 B
Nix
Raw Normal View History

{...}: {
imports = [./default.nix];
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";}];
};
}