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

23 lines
515 B
Nix
Raw Normal View History

_:
let
2024-10-27 23:09:50 +05:30
inherit (import ../../../shared/caddy-helpers.nix) logFormat tlsAcmeDnsChallenge;
in
{
2024-10-26 13:08:28 +05:30
services = {
caddy.virtualHosts."readarr.labs.adtya.xyz" = {
2024-10-27 23:09:50 +05:30
inherit logFormat;
2024-10-26 13:08:28 +05:30
extraConfig = ''
2024-10-27 23:09:50 +05:30
${tlsAcmeDnsChallenge}
2024-10-26 13:08:28 +05:30
reverse_proxy 127.0.0.1:8787
'';
};
readarr = {
enable = true;
dataDir = "/mnt/data/readarr";
user = "mediaserver";
group = "mediaserver";
};
};
systemd.services.radarr.unitConfig.RequiresMountsFor = [ "/mnt/data" ];
}