Setup radarr and sonarr on torrent host

This commit is contained in:
fi 2023-12-16 00:22:34 +01:00
parent 2085dfb783
commit 2733d28a99
Signed by: fi
SSH key fingerprint: SHA256:d+6fQoDPMbSFK95zRVflRKZLRKF4cPSQb7VIxYkhFsA
13 changed files with 245 additions and 1 deletions

View file

@ -0,0 +1,80 @@
{ ... }:
{
services.nginx = {
enable = true;
virtualHosts = {
"jackett.grzb.de" = {
forceSSL = true;
enableACME = true;
listen = [
{
addr = "0.0.0.0";
port = 80;
}
{
addr = "0.0.0.0";
port = 443;
ssl = true;
}
];
locations = {
"/" = {
proxyPass = "http://127.0.0.1:9117";
proxyWebsockets = true;
};
};
};
"radarr.grzb.de" = {
forceSSL = true;
enableACME = true;
listen = [
{
addr = "0.0.0.0";
port = 80;
}
{
addr = "0.0.0.0";
port = 443;
ssl = true;
}
];
locations = {
"/" = {
proxyPass = "http://127.0.0.1:7878";
proxyWebsockets = true;
};
};
};
"sonarr.grzb.de" = {
forceSSL = true;
enableACME = true;
listen = [
{
addr = "0.0.0.0";
port = 80;
}
{
addr = "0.0.0.0";
port = 443;
ssl = true;
}
];
locations = {
"/" = {
proxyPass = "http://127.0.0.1:8989";
proxyWebsockets = true;
};
};
};
};
};
networking.firewall.allowedTCPPorts = [ 80 443 ];
}