From 247420a18996e73dbff672fb0dad5d27e0cc33ba Mon Sep 17 00:00:00 2001
From: emily
Date: Tue, 26 Nov 2024 12:15:49 +0100
Subject: [PATCH] crime: add lidarr
---
config/services/arrs/default.nix | 13 ++++++++++---
config/services/arrs/landingPage.html | 2 ++
2 files changed, 12 insertions(+), 3 deletions(-)
diff --git a/config/services/arrs/default.nix b/config/services/arrs/default.nix
index 055b496..18e241c 100644
--- a/config/services/arrs/default.nix
+++ b/config/services/arrs/default.nix
@@ -1,8 +1,11 @@
{ lib, pkgs, ... }: {
- services = {
- prowlarr.enable = true;
- } // lib.genAttrs [ "sonarr" "radarr" ] (_: {
+ services = lib.genAttrs [
+ "sonarr"
+ "radarr"
+ "prowlarr"
+ "lidarr"
+ ] (_: {
enable = true;
});
systemd.services = lib.genAttrs [ "radarr" "sonarr" ] (_: {
@@ -36,6 +39,10 @@
disableHttp3 = true;
locations = {
"/".root = pkgs.writeTextDir "index.html" (builtins.readFile ./landingPage.html);
+ "/lidarr/" = {
+ proxyPass = "http://127.0.0.1:8686";
+ recommendedProxySettings = true;
+ };
"/sonarr/" = {
proxyPass = "http://127.0.0.1:8989";
recommendedProxySettings = true;
diff --git a/config/services/arrs/landingPage.html b/config/services/arrs/landingPage.html
index e32b0ec..e2595ac 100644
--- a/config/services/arrs/landingPage.html
+++ b/config/services/arrs/landingPage.html
@@ -19,6 +19,8 @@ working. Further configuration is required.
crime.kyouma.net/sonarr
Radarr
crime.kyouma.net/radarr
+Lidarr
+crime.kyouma.net/lidarr
Prowlarr
crime.kyouma.net/prowlarr