2021-10-16 20:34:13 +03:00
|
|
|
{ config, lib, tools, ... }:
|
|
|
|
with tools.nginx;
|
|
|
|
{
|
2021-11-29 02:38:59 +02:00
|
|
|
reservePortsFor = [ "ombi" ];
|
|
|
|
|
2021-10-16 20:34:13 +03:00
|
|
|
services = {
|
|
|
|
radarr = {
|
|
|
|
enable = true;
|
|
|
|
};
|
|
|
|
sonarr = {
|
|
|
|
enable = true;
|
|
|
|
};
|
|
|
|
ombi = {
|
|
|
|
enable = true;
|
2021-11-29 02:38:59 +02:00
|
|
|
port = config.ports.ombi;
|
2021-10-16 20:34:13 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
nginx.virtualHosts = mappers.mapSubdomains {
|
|
|
|
radarr = vhosts.proxy "http://127.0.0.1:7878";
|
|
|
|
sonarr = vhosts.proxy "http://127.0.0.1:8989";
|
2021-11-29 02:38:59 +02:00
|
|
|
fbi-requests = vhosts.proxy "http://127.0.0.1:${config.portsStr.ombi}";
|
2021-10-16 20:34:13 +03:00
|
|
|
};
|
|
|
|
};
|
|
|
|
systemd.services.radarr.serviceConfig.Slice = "mediamanagement.slice";
|
|
|
|
systemd.services.sonarr.serviceConfig.Slice = "mediamanagement.slice";
|
|
|
|
}
|