opening audiobookshelf port

This commit is contained in:
Danilo Reyes 2025-01-18 23:29:24 -06:00
parent 7c196d7365
commit 2e776fb9ad

View File

@ -6,7 +6,8 @@ in
{
options.my.servers.audiobookshelf = setup.mkOptions "audiobookshelf" "audiobooks" 5687;
config = {
networking.firewall.allowedTCPPorts = lib.mkIf (!cfg.isLocal) [ cfg.port ];
# always opening port to upload books
networking.firewall.allowedTCPPorts = [ cfg.port ];
services = {
audiobookshelf = lib.mkIf cfg.enable {
inherit (cfg) port;