Merge pull request #107969 from corngood/jellyfin
jellyfin: add openFirewall option
This commit is contained in:
commit
e0fd737309
@ -29,6 +29,16 @@ in
|
|||||||
default = "jellyfin";
|
default = "jellyfin";
|
||||||
description = "Group under which jellyfin runs.";
|
description = "Group under which jellyfin runs.";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
openFirewall = mkOption {
|
||||||
|
type = types.bool;
|
||||||
|
default = false;
|
||||||
|
description = ''
|
||||||
|
Open the default ports in the firewall for the media server. The
|
||||||
|
HTTP/HTTPS ports can be changed in the Web UI, so this option should
|
||||||
|
only be used if they are unchanged.
|
||||||
|
'';
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -104,6 +114,12 @@ in
|
|||||||
jellyfin = {};
|
jellyfin = {};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
networking.firewall = mkIf cfg.openFirewall {
|
||||||
|
# from https://jellyfin.org/docs/general/networking/index.html
|
||||||
|
allowedTCPPorts = [ 8096 8920 ];
|
||||||
|
allowedUDPPorts = [ 1900 7359 ];
|
||||||
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
meta.maintainers = with lib.maintainers; [ minijackson ];
|
meta.maintainers = with lib.maintainers; [ minijackson ];
|
||||||
|
Loading…
Reference in New Issue
Block a user