nixos/hosts/architect/nzbget.nix

26 lines
524 B
Nix
Raw Normal View History

2021-11-25 11:42:32 +00:00
with import ./network.nix; {
2021-07-07 13:13:19 +01:00
services = {
nzbget.enable = true;
nginx.virtualHosts.${nzbgetdomain} = {
forceSSL = true;
enableACME = true;
locations."/" = {
proxyPass = "http://localhost:6789";
extraConfig = ''
allow 10.0.0.0/24;
allow 10.3.0.0/24;
deny all;
'';
};
};
};
networking.extraHosts = ''
${architect-lan} ${nzbgetdomain}
${architect-wg} ${nzbgetdomain}
'';
2021-11-25 11:42:32 +00:00
users.groups.media.members = [ "nzbget" ];
2021-07-07 13:13:19 +01:00
}