diff options
author | Aaron Andersen <aaron@fosslib.net> | 2021-04-10 18:02:05 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-10 18:02:05 -0400 |
commit | e0fd7373090ae0e39314b33cb9dfab4d366d4cf5 (patch) | |
tree | b5f5e7f640a2299c85058037b53a326373390248 /nixos | |
parent | f9951f50a5c14eb405be1959f9b7b30a849040f2 (diff) | |
parent | 6c0a704e0e613fb50846aefa151e88c954b60f9f (diff) | |
download | nixpkgs-e0fd7373090ae0e39314b33cb9dfab4d366d4cf5.tar nixpkgs-e0fd7373090ae0e39314b33cb9dfab4d366d4cf5.tar.gz nixpkgs-e0fd7373090ae0e39314b33cb9dfab4d366d4cf5.tar.bz2 nixpkgs-e0fd7373090ae0e39314b33cb9dfab4d366d4cf5.tar.lz nixpkgs-e0fd7373090ae0e39314b33cb9dfab4d366d4cf5.tar.xz nixpkgs-e0fd7373090ae0e39314b33cb9dfab4d366d4cf5.tar.zst nixpkgs-e0fd7373090ae0e39314b33cb9dfab4d366d4cf5.zip |
Merge pull request #107969 from corngood/jellyfin
jellyfin: add openFirewall option
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/modules/services/misc/jellyfin.nix | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/nixos/modules/services/misc/jellyfin.nix b/nixos/modules/services/misc/jellyfin.nix index 6a47dc3628f..64b774a220b 100644 --- a/nixos/modules/services/misc/jellyfin.nix +++ b/nixos/modules/services/misc/jellyfin.nix @@ -29,6 +29,16 @@ in default = "jellyfin"; 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 = {}; }; + 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 ]; |