update
This commit is contained in:
parent
cfa4e187c5
commit
fbd804939f
@ -66,11 +66,35 @@ in {
|
|||||||
openFirewall = true;
|
openFirewall = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
# transmission = {
|
transmission = {
|
||||||
# enable = true;
|
enable = true;
|
||||||
# user = "jackflix";
|
user = "nixarr";
|
||||||
# group = "media";
|
group = "nixarr";
|
||||||
# openFirewall = true;
|
openFirewall = true;
|
||||||
# };
|
settings = {
|
||||||
|
"rpc-bind-address" = "192.168.15.1"; # Bind RPC/WebUI to bridge address
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
# Define VPN network namespace
|
||||||
|
vpnnamespaces.wg = {
|
||||||
|
enable = true;
|
||||||
|
wireguardConfigFile = "/data/.secret/wg.conf";
|
||||||
|
accessibleFrom = [ "192.168.1.0/24" ];
|
||||||
|
portMappings = [{
|
||||||
|
from = 9091;
|
||||||
|
to = 9091;
|
||||||
|
}];
|
||||||
|
openVPNPorts = [{
|
||||||
|
port = 60729;
|
||||||
|
protocol = "both";
|
||||||
|
}];
|
||||||
|
};
|
||||||
|
|
||||||
|
# Add systemd service to VPN network namespace.
|
||||||
|
systemd.services.transmission.vpnconfinement = {
|
||||||
|
enable = true;
|
||||||
|
vpnnamespace = "wg";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user