sabnzbd added proxy

This commit is contained in:
Danilo Reyes 2024-09-06 00:36:29 -06:00
parent b99d2b76cc
commit 3d66cc60d9
2 changed files with 11 additions and 5 deletions

View File

@ -51,6 +51,8 @@ in {
proxyReverse config.services.bazarr.listenPort // { }; proxyReverse config.services.bazarr.listenPort // { };
"library.${config.my.domain}" = proxyReverse config.services.kavita.port "library.${config.my.domain}" = proxyReverse config.services.kavita.port
// { }; // { };
"vnfx2cojmt7dwzcfmi73.${config.my.domain}" = proxyReverse 9091 // { };
"HSoeJdGRd2Orj0n31UGI.${config.my.domain}" = proxyReverse 3399 // { };
"flix.${config.my.domain}" = { "flix.${config.my.domain}" = {
forceSSL = true; forceSSL = true;
enableACME = true; enableACME = true;

View File

@ -1,10 +1,14 @@
{ lib, config, pkgs, proxyReverse, ... }: { { lib, config, proxyReverse, ... }: {
options.my.servers.sabnzbd.enable = lib.mkEnableOption "enable"; options.my.servers.sabnzbd.enable = lib.mkEnableOption "enable";
config = lib.mkIf config.my.servers.sabnzbd.enable { config = lib.mkIf config.my.servers.sabnzbd.enable {
services.sabnzbd = { services = {
enable = true; sabnzbd = {
group = "piracy"; enable = true;
openFirewall = true; group = "piracy";
openFirewall = true;
};
nginx.virtualHosts."HSoeJdGRd2Orj0n31UGI.${config.my.domain}" =
proxyReverse 3399 // { };
}; };
}; };
} }