2024-10-27 20:50:37 +05:30
|
|
|
_:
|
|
|
|
let
|
2024-10-31 14:39:20 +05:30
|
|
|
inherit (import ../../../shared/caddy-helpers.nix) logFormat;
|
2024-10-27 20:50:37 +05:30
|
|
|
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 = ''
|
|
|
|
reverse_proxy 127.0.0.1:8787
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
readarr = {
|
|
|
|
enable = true;
|
|
|
|
dataDir = "/mnt/data/readarr";
|
|
|
|
user = "mediaserver";
|
|
|
|
group = "mediaserver";
|
|
|
|
};
|
|
|
|
};
|
2024-11-01 19:20:53 +05:30
|
|
|
systemd.services.readarr.unitConfig.RequiresMountsFor = [ "/mnt/data" ];
|
2024-10-26 13:08:28 +05:30
|
|
|
}
|