1
0
Fork 0
dotfiles/system/nixos/prowlarr.nix

45 lines
1,009 B
Nix
Raw Normal View History

2023-07-17 00:17:50 +02:00
{ lib, ... }:
2023-04-14 00:12:24 +02:00
2023-04-13 22:53:38 +02:00
{
2023-05-24 13:02:56 +02:00
virtualisation.oci-containers.containers.prowlarr = {
image = "lscr.io/linuxserver/prowlarr:latest";
ports = [ "192.168.42.2:9696:9696" ];
environment = {
"PUID" = "1001";
"PGID" = "2001";
"TZ" = "Etc/UTC";
};
volumes = [
"/var/lib/prowlarr:/config"
];
extraOptions = [
"--network=ns:/var/run/netns/wg"
"--label=com.centurylinklabs.watchtower.enable=true"
"--label=io.containers.autoupdate=registry"
];
2023-04-13 22:53:38 +02:00
};
2023-05-24 13:02:56 +02:00
systemd.services.podman-prowlarr = {
2023-04-15 00:52:07 +02:00
bindsTo = [ "wg.service" ];
2023-04-15 00:04:18 +02:00
after = lib.mkForce [ "wg.service" ];
2023-04-13 22:53:38 +02:00
};
2023-04-14 00:12:24 +02:00
2023-04-14 17:45:02 +02:00
services.nginx.virtualHosts."prowlarr.internal.kempkens.network" = {
quic = true;
http3 = true;
onlySSL = true;
useACMEHost = "internal.kempkens.network";
2023-04-15 01:29:59 +02:00
extraConfig = ''
client_max_body_size 32m;
'';
2023-04-14 17:45:02 +02:00
locations."/" = {
recommendedProxySettings = true;
proxyPass = "http://192.168.42.2:9696";
2023-04-15 01:27:47 +02:00
proxyWebsockets = true;
2023-04-14 17:45:02 +02:00
};
};
2023-04-13 22:53:38 +02:00
}