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 - ''; - }; - - }; - - }; - -}