Refactor part 2
This commit is contained in:
parent
7b819c69d1
commit
56f3c7e2b0
49 changed files with 385 additions and 358 deletions
66
hosts/servers/alexandria/arr.nix
Normal file
66
hosts/servers/alexandria/arr.nix
Normal file
|
|
@ -0,0 +1,66 @@
|
|||
{ inputs, config, pkgs, lib, ... }:
|
||||
|
||||
{
|
||||
services = {
|
||||
bazarr = {
|
||||
enable = true;
|
||||
user = "user";
|
||||
group = "hosted";
|
||||
};
|
||||
|
||||
jackett.enable = true;
|
||||
|
||||
qbittorrent = {
|
||||
enable = true;
|
||||
user = "user";
|
||||
group = "hosted";
|
||||
port = lib.toInt "${config.ports.qbittorrent}";
|
||||
};
|
||||
|
||||
radarr = {
|
||||
enable = true;
|
||||
user = "user";
|
||||
group = "hosted";
|
||||
};
|
||||
|
||||
sonarr = {
|
||||
enable = true;
|
||||
user = "user";
|
||||
group = "hosted";
|
||||
};
|
||||
|
||||
nginx.virtualHosts = {
|
||||
"bazarr.baduhai.me" = {
|
||||
useACMEHost = "baduhai.me";
|
||||
forceSSL = true;
|
||||
kTLS = true;
|
||||
locations."/".proxyPass = "http://127.0.0.1:${config.ports.bazaar}";
|
||||
};
|
||||
"jackett.baduhai.me" = {
|
||||
useACMEHost = "baduhai.me";
|
||||
forceSSL = true;
|
||||
kTLS = true;
|
||||
locations."/".proxyPass = "http://127.0.0.1:${config.ports.jackett}";
|
||||
};
|
||||
"qbittorrent.baduhai.me" = {
|
||||
useACMEHost = "baduhai.me";
|
||||
forceSSL = true;
|
||||
kTLS = true;
|
||||
locations."/".proxyPass =
|
||||
"http://127.0.0.1:${config.ports.qbittorrent}";
|
||||
};
|
||||
"radarr.baduhai.me" = {
|
||||
useACMEHost = "baduhai.me";
|
||||
forceSSL = true;
|
||||
kTLS = true;
|
||||
locations."/".proxyPass = "http://127.0.0.1:${config.ports.radarr}";
|
||||
};
|
||||
"sonarr.baduhai.me" = {
|
||||
useACMEHost = "baduhai.me";
|
||||
forceSSL = true;
|
||||
kTLS = true;
|
||||
locations."/".proxyPass = "http://127.0.0.1:${config.ports.sonarr}";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue