35 lines
678 B
Nix
35 lines
678 B
Nix
{ pkgs, lib, ... }:
|
|
|
|
{
|
|
services.prowlarr = {
|
|
enable = true;
|
|
openFirewall = false;
|
|
};
|
|
|
|
systemd.services.prowlarr = {
|
|
bindsTo = [ "wg.service" ];
|
|
after = lib.mkForce [ "wg.service" ];
|
|
|
|
serviceConfig = {
|
|
NetworkNamespacePath = "/var/run/netns/wg";
|
|
};
|
|
};
|
|
|
|
services.nginx.virtualHosts."prowlarr.internal.kempkens.network" = {
|
|
quic = true;
|
|
http3 = true;
|
|
|
|
onlySSL = true;
|
|
useACMEHost = "internal.kempkens.network";
|
|
|
|
extraConfig = ''
|
|
client_max_body_size 32m;
|
|
'';
|
|
|
|
locations."/" = {
|
|
recommendedProxySettings = true;
|
|
proxyPass = "http://192.168.42.2:9696";
|
|
proxyWebsockets = true;
|
|
};
|
|
};
|
|
}
|