feat(nzbget): install
This commit is contained in:
parent
2f5065d610
commit
8683f1838b
5 changed files with 47 additions and 1 deletions
21
modules/nixos/features/nzbget.nix
Normal file
21
modules/nixos/features/nzbget.nix
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
let
|
||||
port = 5018;
|
||||
in
|
||||
{
|
||||
services = {
|
||||
nzbget = {
|
||||
enable = true;
|
||||
settings = {
|
||||
MainDir = "/srv/nzbget";
|
||||
ControlPort = port;
|
||||
};
|
||||
group = "srv";
|
||||
};
|
||||
|
||||
nginx.virtualHosts."nzbget.fi33.buzz" = {
|
||||
forceSSL = true;
|
||||
useACMEHost = "fi33.buzz";
|
||||
locations."/".proxyPass = "http://localhost:${toString port}";
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue