From ad0d524ca4f0be6ce4a7e8fa65e7b2700c7914cd Mon Sep 17 00:00:00 2001 From: pazpi Date: Fri, 6 Sep 2024 08:05:48 +0200 Subject: [PATCH] =?UTF-8?q?Rimossa=20vecchia=20modalit=C3=A0=20non=20funzi?= =?UTF-8?q?onante?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/services/download-pod copy.nix | 61 -------------------------- 1 file changed, 61 deletions(-) delete mode 100644 modules/services/download-pod copy.nix diff --git a/modules/services/download-pod copy.nix b/modules/services/download-pod copy.nix deleted file mode 100644 index c6f5ae8..0000000 --- a/modules/services/download-pod copy.nix +++ /dev/null @@ -1,61 +0,0 @@ -{ - config, - pkgs, - lib, - ... -}: -let - cfg = config.my.services.download-pod; -in -{ - options.my.services.download-pod = { - enable = lib.mkEnableOption "Enable the download searcher stack"; - - proxy = { - enable = lib.mkEnableOption "Enable proxy for the services"; - - hostName = lib.mkOption { - default = "example.com"; - type = lib.types.str; - description = '' - Top level hostname - ''; - }; - - serverName = lib.mkOption { - default = "localhost"; - type = lib.types.str; - description = '' - Server name where Caddy is - ''; - }; - - }; - - }; - - config = lib.mkIf cfg.enable { - - services.caddy = lib.mkIf cfg.proxy.enable { - enable = true; - enableReload = false; - virtualHosts = { - "jackett.${cfg.proxy.hostName}".extraConfig = '' - reverse_proxy http://${cfg.proxy.serverName}:9117 - ''; - "radarr.${cfg.proxy.hostName}".extraConfig = '' - reverse_proxy http://${cfg.proxy.serverName}:7878 - ''; - "sabnzbd.${cfg.proxy.hostName}".extraConfig = '' - reverse_proxy http://${cfg.proxy.serverName}:8080 - ''; - "sonarr.${cfg.proxy.hostName}".extraConfig = '' - reverse_proxy http://${cfg.proxy.serverName}:8989 - ''; - }; - - }; - - }; - -}