sonarr now uses integrated openfirewall
This commit is contained in:
@@ -6,11 +6,11 @@ in
|
|||||||
{
|
{
|
||||||
options.my.servers.sonarr = setup.mkOptions "sonarr" "series" 8989;
|
options.my.servers.sonarr = setup.mkOptions "sonarr" "series" 8989;
|
||||||
config = {
|
config = {
|
||||||
networking.firewall.allowedTCPPorts = lib.mkIf (!cfg.isLocal) [ cfg.port ];
|
|
||||||
services = {
|
services = {
|
||||||
sonarr = lib.mkIf cfg.enable {
|
sonarr = lib.mkIf cfg.enable {
|
||||||
enable = true;
|
enable = true;
|
||||||
group = "piracy";
|
group = "piracy";
|
||||||
|
openFirewall = (!cfg.isLocal);
|
||||||
};
|
};
|
||||||
nginx.virtualHosts."${cfg.host}" = lib.mkIf cfg.enableProxy (
|
nginx.virtualHosts."${cfg.host}" = lib.mkIf cfg.enableProxy (
|
||||||
setup.proxyReverseFix cfg.hostName cfg.port // { }
|
setup.proxyReverseFix cfg.hostName cfg.port // { }
|
||||||
|
|||||||
Reference in New Issue
Block a user