Add traefik config for syncthing interface
This commit is contained in:
parent
6906aa349b
commit
357da24248
12
server/syncthing.nix
Normal file
12
server/syncthing.nix
Normal 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";}];
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue