From ffc37708390efc98f593473c5a32ad196b094477 Mon Sep 17 00:00:00 2001 From: Danilo Reyes Date: Sat, 18 Jan 2025 23:39:28 -0600 Subject: [PATCH] opening firewall --- modules/servers/audiobookshelf.nix | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/modules/servers/audiobookshelf.nix b/modules/servers/audiobookshelf.nix index 7115245..f3f6e4a 100644 --- a/modules/servers/audiobookshelf.nix +++ b/modules/servers/audiobookshelf.nix @@ -6,13 +6,12 @@ in { options.my.servers.audiobookshelf = setup.mkOptions "audiobookshelf" "audiobooks" 5687; config = { - # always opening port to upload books - networking.firewall.allowedTCPPorts = [ cfg.port ]; services = { audiobookshelf = lib.mkIf cfg.enable { inherit (cfg) port; enable = true; group = "piracy"; + openFirewall = true; }; nginx.virtualHosts."${cfg.host}" = lib.mkIf cfg.enableProxy ( setup.proxy {