From 7011fa7a6e0bea3540546a39459ce4b48c519cb9 Mon Sep 17 00:00:00 2001 From: Nathan McCarty Date: Tue, 11 Apr 2023 22:32:35 -0400 Subject: [PATCH] Configure tdarr --- machines/perception/configuration.nix | 14 ++++++++++++++ machines/tounge/configuration.nix | 10 ++++++++++ 2 files changed, 24 insertions(+) diff --git a/machines/perception/configuration.nix b/machines/perception/configuration.nix index 288b4cf..9692579 100644 --- a/machines/perception/configuration.nix +++ b/machines/perception/configuration.nix @@ -133,6 +133,20 @@ "/mnt/scratch/sabnzbd/download:/incomplete-downloads" ]; }; + # Configure tdarr - automatic transcoding and homogenization + "tdarr" = { + image = "ghcr.io/haveagitgat/tdarr"; + environment = { + "PUID" = "1000"; + "PGID" = "1000"; + "TZ" = "America/New_York"; + "internalNode" = "true"; + "inContainer" = "true"; + }; + ports = [ "8265:8265" "8266:8266" "8267:8267" ]; + volumes = [ "/var/lib/tdarr:/app/configs" "/mnt/plex:/media" ]; + extraOptions = [ "--device=/dev/dri:/dev/dri" ]; + }; # Configure sonarr - TV "sonarr" = { image = "lscr.io/linuxserver/sonarr:latest"; diff --git a/machines/tounge/configuration.nix b/machines/tounge/configuration.nix index 9556e78..208646e 100644 --- a/machines/tounge/configuration.nix +++ b/machines/tounge/configuration.nix @@ -209,6 +209,16 @@ ''; }; }; + "tdarr.mccarty.io" = { + forceSSL = true; + useACMEHost = "mccarty.io"; + locations."/" = { + proxyPass = "http://100.121.150.78:8265"; + extraConfig = '' + allow all; + ''; + }; + }; "calibre.mccarty.io" = { forceSSL = true; useACMEHost = "mccarty.io";