17 lines
452 B
Nix
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"; }];
|
|
};
|
|
}
|