1
0
Fork 0

flaresolverr: init

This commit is contained in:
Daniel Kempkens 2023-05-22 00:56:05 +02:00
parent 3c50a55b62
commit 47f5c32b4f
Signed by: daniel
SSH key fingerprint: SHA256:Ks/MyhQYcPRQiwMKLAKquWCdCPe3JXlb1WttgnAoSeM
2 changed files with 28 additions and 0 deletions

View file

@ -0,0 +1,27 @@
{ lib, ... }:
{
virtualisation.oci-containers.containers.flaresolverr = {
image = "ghcr.io/flaresolverr/flaresolverr:latest";
ports = [ "192.168.42.2:8191:8191" ];
environment = {
"HOST" = "192.168.42.2";
"PORT" = "8191";
"LOG_LEVEL" = "info";
};
extraOptions = [
"--network=ns:/var/run/netns/wg"
"--label=com.centurylinklabs.watchtower.enable=true"
"--label=io.containers.autoupdate=registry"
];
};
systemd.services.podman-flaresolverr = {
bindsTo = [ "wg.service" ];
after = lib.mkForce [ "wg.service" ];
serviceConfig = {
TimeoutStopSec = lib.mkForce 10;
};
};
}

View file

@ -37,6 +37,7 @@ in
../nixos/container.nix
../../container/tubearchivist
../../container/autobrr
../../container/flaresolverr
../../secret/container/additional-media
];