21 lines
465 B
Nix
21 lines
465 B
Nix
_:
|
|
let
|
|
inherit (import ../../../shared/caddy-helpers.nix) logFormat;
|
|
in
|
|
{
|
|
services = {
|
|
caddy.virtualHosts."readarr.labs.adtya.xyz" = {
|
|
inherit logFormat;
|
|
extraConfig = ''
|
|
reverse_proxy 127.0.0.1:8787
|
|
'';
|
|
};
|
|
readarr = {
|
|
enable = true;
|
|
dataDir = "/mnt/data/readarr";
|
|
user = "mediaserver";
|
|
group = "mediaserver";
|
|
};
|
|
};
|
|
systemd.services.readarr.unitConfig.RequiresMountsFor = [ "/mnt/data" ];
|
|
}
|