From 47f5c32b4fe5279329fd9253c8883854fec0453c Mon Sep 17 00:00:00 2001 From: Daniel Kempkens Date: Mon, 22 May 2023 00:56:05 +0200 Subject: [PATCH] flaresolverr: init --- container/flaresolverr/default.nix | 27 +++++++++++++++++++++++++++ system/hosts/mediaserver.nix | 1 + 2 files changed, 28 insertions(+) create mode 100644 container/flaresolverr/default.nix diff --git a/container/flaresolverr/default.nix b/container/flaresolverr/default.nix new file mode 100644 index 0000000..9e5aa20 --- /dev/null +++ b/container/flaresolverr/default.nix @@ -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; + }; + }; +} diff --git a/system/hosts/mediaserver.nix b/system/hosts/mediaserver.nix index 8d6a7a6..af977c2 100644 --- a/system/hosts/mediaserver.nix +++ b/system/hosts/mediaserver.nix @@ -37,6 +37,7 @@ in ../nixos/container.nix ../../container/tubearchivist ../../container/autobrr + ../../container/flaresolverr ../../secret/container/additional-media ];