Files
stubbfelnix/services/resilio.nix
2018-01-04 14:32:24 +01:00

23 lines
541 B
Nix

{ config, pkgs, ... }:
{
networking.firewall.allowedTCPPorts = [config.services.resilio.httpListenPort];
services.nginx.virtualHosts."sync.stubbe.rocks" = {
enableACME = true;
forceSSL = true;
locations."/".proxyPass = "http://localhost:${toString config.services.resilio.httpListenPort}";
};
services.resilio = {
enable = true;
deviceName = "stubbfelnix";
checkForUpdates = false;
useUpnp = false;
httpLogin = "resilioSyncAdmin";
httpPass = "&u)cg?ZD6P%S";
enableWebUI = true;
};
}