21 lines
424 B
Nix
21 lines
424 B
Nix
|
{ }:
|
||
|
{ services.sickbeard = let
|
||
|
pkg = pkgs.callPackage ./sickgear.nix {};
|
||
|
in {
|
||
|
enable = true;
|
||
|
package = pkg;
|
||
|
user = "sickbeard";
|
||
|
group = "download";
|
||
|
port = 8280;
|
||
|
};
|
||
|
services.nginx.virtualHosts."sick.makefu.r" = {
|
||
|
locations."/".proxyPass = http://localhost:8280;
|
||
|
extraConfig = ''
|
||
|
if ( $server_addr = "${external-ip}" ) {
|
||
|
return 403;
|
||
|
}
|
||
|
'';
|
||
|
};
|
||
|
users.users.sickbeard.extraGroups = [ "nginx" ];
|
||
|
}
|