2023-04-15 22:46:06 +00:00
|
|
|
{ pkgs, lib, ... }:
|
|
|
|
|
|
|
|
{
|
|
|
|
services.radarr = {
|
|
|
|
enable = true;
|
|
|
|
user = "media_user";
|
|
|
|
group = "media_group";
|
|
|
|
openFirewall = false;
|
|
|
|
};
|
|
|
|
|
|
|
|
systemd.services.radarr = {
|
|
|
|
bindsTo = [ "wg.service" ];
|
|
|
|
after = lib.mkForce [ "wg.service" ];
|
|
|
|
|
|
|
|
serviceConfig = {
|
|
|
|
NetworkNamespacePath = "/var/run/netns/wg";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
services.nginx.virtualHosts."radarr.internal.kempkens.network" = {
|
|
|
|
quic = true;
|
|
|
|
http3 = true;
|
|
|
|
|
|
|
|
onlySSL = true;
|
|
|
|
useACMEHost = "internal.kempkens.network";
|
|
|
|
|
|
|
|
extraConfig = ''
|
|
|
|
client_max_body_size 32m;
|
|
|
|
'';
|
|
|
|
|
|
|
|
locations."/" = {
|
|
|
|
recommendedProxySettings = true;
|
2023-04-18 18:11:34 +00:00
|
|
|
proxyPass = "http://192.168.42.2:7878";
|
|
|
|
proxyWebsockets = true;
|
2023-04-15 22:46:06 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|