From c1e165c14c7ac0d3966789463f4d71616a9b47e4 Mon Sep 17 00:00:00 2001 From: DrFrankensteinUK Date: Thu, 1 Aug 2024 17:55:36 +0100 Subject: [PATCH 1/3] Update README.md Amended the docker section to point at the dedicated read me file as the information on the front page does not have the same detailed information or compose information. --- README.md | 48 ++---------------------------------------------- 1 file changed, 2 insertions(+), 46 deletions(-) diff --git a/README.md b/README.md index c8aa2eb..a58efad 100644 --- a/README.md +++ b/README.md @@ -20,53 +20,9 @@ This is a web interface to manage your torrents on Real-Debrid, AllDebrid or Pre ## Docker Setup -You can run the docker container on Windows, Linux. To get started either use _Docker Run_ or _Docker Compose_. +Please see our separate Docker setup Read Me. -### Docker Run - -```console -docker run --pull=always - --volume /your/download/path/:/data/downloads \ - --volume /your/storage/path/:/data/db \ - --log-driver json-file \ - --log-opt max-size=10m \ - -p 6500:6500 \ - --name rdtclient \ - rogerfar/rdtclient:latest -``` - -Replace `/your/download/path/` with your local path to download files to. For Windows i.e. `C:/Downloads`. -Replace `/your/storage/path/` with your local path to store persistent database and log files in. For Windows i.e. `C:/Docker/rdt-client`. - -### Docker Compose - -You can use the provided docker compose to run: - -```yaml -version: '3.3' -services: - rdtclient: - container_name: rdtclient - volumes: - - 'D:/Downloads/:/data/downloads' - - 'D:/Docker/rdt-client/:/data/db' - image: rogerfar/rdtclient - restart: always - logging: - driver: json-file - options: - max-size: 10m - ports: - - '6500:6500' -``` - -And to run: - -```console -docker-compose up -d -``` - -Replace the paths in `volumes` as in the above step. +[Readme for Docker](README-DOCKER.md) ## Run as a Service From bb354b6a3628d13f12b2cdf103ba714a110a1852 Mon Sep 17 00:00:00 2001 From: GabbeHags <38500419+GabbeHags@users.noreply.github.com> Date: Sat, 3 Aug 2024 01:53:29 +0200 Subject: [PATCH 2/3] Update README.md with more steps for windows service --- README.md | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index c8aa2eb..8845891 100644 --- a/README.md +++ b/README.md @@ -71,13 +71,17 @@ Replace the paths in `volumes` as in the above step. ## Run as a Service Instead of running in Docker you can install it as a service in Windows or Linux. + ## Windows Service 1. Make sure you have the ASP.NET Core Runtime 8 installed: [https://dotnet.microsoft.com/download/dotnet/8.0](https://dotnet.microsoft.com/download/dotnet/8.0) -1. Get the latest zip file from the Releases page and extract it to your host. -1. Open the `appsettings.json` file and replace the `LogLevel` `Path` to a path on your host. -1. In `appsettings.json` replace the `Database` `Path` to a path on your host. -1. When using Windows paths, make sure to escape the slashes. For example: `D:\\RdtClient\\db\\rdtclient.db` +2. Get the latest zip file from the Releases page and extract it to your host. +3. Open the `appsettings.json` file and replace the `LogLevel` `Path` to a path on your host. +4. In `appsettings.json` replace the `Database` `Path` to a path on your host. +5. When using Windows paths, make sure to escape the slashes. For example: `D:\\RdtClient\\db\\rdtclient.db` +6. Do one of these: + * Run `RdtClient.Web.exe` to start the client. + * Run `service-install.bat` to install the client as a service. This will install `RdtClient.Web.exe` as a service which make the client start in the backgorund when the computer starts. (You probably want to do this if you are going to use this with Sonarr etc...) ## Linux Service From 6d4440de20d4548aadf911bd8fa73996b0066557 Mon Sep 17 00:00:00 2001 From: Mitchell Kelly Date: Sun, 4 Aug 2024 20:07:54 -0400 Subject: [PATCH 3/3] Fixed issue moving downloaded files in the base directory --- .../RdtClient.Service/Services/Downloaders/SymlinkDownloader.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/server/RdtClient.Service/Services/Downloaders/SymlinkDownloader.cs b/server/RdtClient.Service/Services/Downloaders/SymlinkDownloader.cs index 08d3e15..9739d0f 100644 --- a/server/RdtClient.Service/Services/Downloaders/SymlinkDownloader.cs +++ b/server/RdtClient.Service/Services/Downloaders/SymlinkDownloader.cs @@ -73,6 +73,8 @@ public class SymlinkDownloader(String uri, String destinationPath, String path) potentialFilePaths.Add(fileName); potentialFilePaths.Add(fileNameWithoutExtension); + // add an empty path so we can check for the new file in the base directory + potentialFilePaths.Add(""); potentialFilePaths = potentialFilePaths.Distinct().ToList();