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