roles/syncthingserver: use syncthingGuiPort variable

This commit is contained in:
2025-09-01 15:52:27 -07:00
parent 287c4572ad
commit 698cac57b9

View File

@@ -13,6 +13,7 @@ with lib;
let
cfg = config.syncthingserver;
syncthingGuiPort = 8384;
in
{
options.syncthingserver = {
@@ -82,7 +83,7 @@ in
};
http.services.syncthing-gui = {
loadBalancer.servers = [ { url = "http://localhost:8384"; } ];
loadBalancer.servers = [ { url = "http://localhost:${toString syncthingGuiPort}"; } ];
};
};
};