Evie Litherland-Smith
320d76f972
Separate service setup from traefik config for each, prep for future server separation
14 lines
419 B
Nix
14 lines
419 B
Nix
{...}: {
|
|
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";}];
|
|
};
|
|
}
|