nixos/hosts/architect/prowlarr.nix

39 lines
875 B
Nix
Raw Permalink Normal View History

{ lib, ... }:
let
domain = "htpro.giugl.io";
network = import ./network.nix;
in {
2021-09-25 17:21:27 +01:00
services = {
prowlarr.enable = true;
nginx.virtualHosts.${domain} = {
2021-09-25 17:21:27 +01:00
forceSSL = true;
enableACME = true;
locations."/" = {
proxyPass = "http://127.0.0.1:9696";
2021-09-25 17:21:27 +01:00
extraConfig = ''
allow 10.0.0.0/24;
${lib.concatMapStrings (x: "allow ${x};") network.gdevices-wg}
2021-09-25 17:21:27 +01:00
deny all;
'';
};
2021-11-25 11:42:32 +00:00
# locations."/api" = {
# proxyPass = "http://127.0.0.1:9696/prowlarr/api";
# };
#
# locations."/Content" = {
# proxyPass = "http://127.0.0.1:9696/prowlarr/Content";
# };
2021-09-25 17:21:27 +01:00
};
};
networking.extraHosts = ''
${network.architect-lan} ${domain}
${network.architect-wg} ${domain}
2021-09-25 17:21:27 +01:00
'';
2021-11-25 11:42:32 +00:00
users.groups.media.members = [ "prowlarr" ];
2021-09-25 17:21:27 +01:00
}