2024-10-27 20:50:37 +05:30
|
|
|
_:
|
|
|
|
let
|
2024-10-27 23:09:50 +05:30
|
|
|
inherit (import ../../../shared/caddy-helpers.nix) logFormat tlsAcmeDnsChallenge;
|
2024-10-27 20:50:37 +05:30
|
|
|
in
|
|
|
|
{
|
2024-10-22 20:29:05 +05:30
|
|
|
services = {
|
|
|
|
caddy.virtualHosts."radarr.labs.adtya.xyz" = {
|
2024-10-27 23:09:50 +05:30
|
|
|
inherit logFormat;
|
2024-10-22 20:29:05 +05:30
|
|
|
extraConfig = ''
|
2024-10-27 23:09:50 +05:30
|
|
|
${tlsAcmeDnsChallenge}
|
2024-10-22 20:29:05 +05:30
|
|
|
reverse_proxy 127.0.0.1:7878
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
radarr = {
|
|
|
|
enable = true;
|
|
|
|
dataDir = "/mnt/data/radarr";
|
2024-10-23 23:59:14 +05:30
|
|
|
user = "mediaserver";
|
|
|
|
group = "mediaserver";
|
2024-10-22 20:29:05 +05:30
|
|
|
};
|
|
|
|
};
|
|
|
|
systemd.services.radarr.unitConfig.RequiresMountsFor = [ "/mnt/data" ];
|
|
|
|
}
|