nixos/services/traefik/syncthing.nix
Evie Litherland-Smith d5b54b8551 Add traefik route with auth for syncthing-webinterface
Add auth to adguardhome and grafana traefik routes as well
2023-10-26 17:22:47 +01:00

17 lines
452 B
Nix

{ config, lib, pkgs, ... }:
{
imports = [ ./default.nix ];
services.traefik.dynamicConfigOptions.http = {
routers.syncthing = {
rule = "Host(`sync.xenia.me.uk`)";
entryPoints = [ "http" "https" ];
service = "syncthing-webinterface";
middlewares = [ "auth" ];
tls = { certResolver = "default"; };
};
services.syncthing-webinterface.loadBalancer.servers =
[{ url = "http://localhost:8384"; }];
};
}