diff --git a/platforms/nixos/modules/nmasur/presets/services/arr/arr.nix b/platforms/nixos/modules/nmasur/presets/services/arr/arr.nix index 41da9d88..bcdef8df 100644 --- a/platforms/nixos/modules/nmasur/presets/services/arr/arr.nix +++ b/platforms/nixos/modules/nmasur/presets/services/arr/arr.nix @@ -106,6 +106,12 @@ in lidarr = { enable = true; }; + shelfmark = { + enable = true; + environment = { + URL_BASE = "/shelfmark"; + }; + }; }; # Allows shared group to read/write the sabnzbd directory @@ -161,6 +167,22 @@ in } ]; } + { + match = [ + { + host = [ hostnames.download ]; + path = [ "/shelfmark*" ]; + } + ]; + handle = [ + { + handler = "reverse_proxy"; + upstreams = [ + { dial = "localhost:${builtins.toString config.services.shelfmark.environment.FLASK_PORT}"; } + ]; + } + ]; + } { match = [ {