configuration.nix/hosts/layne/services/apps/jackett.nix

23 lines
491 B
Nix
Raw Normal View History

_:
let
inherit (import ../../../shared/caddy-helpers.nix) tlsDNSChallenge;
in
{
services = {
caddy.virtualHosts."jackett.labs.adtya.xyz" = {
extraConfig = ''
${tlsDNSChallenge}
reverse_proxy 127.0.0.1:9117
'';
};
jackett = {
enable = true;
user = "mediaserver";
group = "mediaserver";
dataDir = "/mnt/data/jackett";
port = 9117;
};
};
systemd.services.radarr.unitConfig.RequiresMountsFor = [ "/mnt/data" ];
}