summaryrefslogtreecommitdiffstats
path: root/makefu/2configs/sickbeard/default.nix
blob: 629558b89902c34558c0a7267bf023c199089b54 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
{ }:
{ 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" ];
      }