From 79b62aba7fbde000ab70c6406cc5e035459177e8 Mon Sep 17 00:00:00 2001 From: Mogeko Date: Thu, 18 Nov 2021 00:24:13 +0000 Subject: [PATCH] build: creat an example dir for test --- .gitignore | 2 - Makefile | 4 +- example/config/qBittorrent-data.conf | 2 + example/config/qBittorrent.conf | 61 ++++++++++++++++++++++++++++ example/config/rss/feeds.json | 2 + example/config/watched_folders.json | 2 + example/data/.gitkeep | 0 7 files changed, 69 insertions(+), 4 deletions(-) create mode 100644 example/config/qBittorrent-data.conf create mode 100644 example/config/qBittorrent.conf create mode 100644 example/config/rss/feeds.json create mode 100644 example/config/watched_folders.json create mode 100644 example/data/.gitkeep diff --git a/.gitignore b/.gitignore index 7a9ac5f..7edf369 100644 --- a/.gitignore +++ b/.gitignore @@ -74,5 +74,3 @@ $RECYCLE.BIN/ # End of https://www.toptal.com/developers/gitignore/api/macos,windows,linux -# Custom dir for test -tests/ diff --git a/Makefile b/Makefile index 33c15a3..22cbc4e 100644 --- a/Makefile +++ b/Makefile @@ -2,8 +2,8 @@ CMD = /usr/bin/docker IMAGE = mogeko/qbittorrent VERSION = 4.3.8 PORT = 8080 -CONF_DIR = $(shell pwd)/tests/config -DL_DIR = $(shell pwd)/tests/data +CONF_DIR = $(shell pwd)/example/config +DL_DIR = $(shell pwd)/example/data .PHONY: all build run help diff --git a/example/config/qBittorrent-data.conf b/example/config/qBittorrent-data.conf new file mode 100644 index 0000000..b0af648 --- /dev/null +++ b/example/config/qBittorrent-data.conf @@ -0,0 +1,2 @@ +[Stats] +AllStats=@Variant(\0\0\0\x1c\0\0\0\x2\0\0\0\x12\0\x41\0l\0l\0t\0i\0m\0\x65\0\x44\0L\0\0\0\x5\0\0\0\0\0\0\x1a\xb0\0\0\0\x12\0\x41\0l\0l\0t\0i\0m\0\x65\0U\0L\0\0\0\x5\0\0\0\0\0\0&\xb8) diff --git a/example/config/qBittorrent.conf b/example/config/qBittorrent.conf new file mode 100644 index 0000000..16b1133 --- /dev/null +++ b/example/config/qBittorrent.conf @@ -0,0 +1,61 @@ +[AutoRun] +enabled=false +program= + +[Core] +AutoDeleteAddedTorrentFile=Never + +[LegalNotice] +Accepted=true + +[Network] +Cookies=@Invalid() + +[Preferences] +Advanced\RecheckOnCompletion=false +Advanced\trackerPort=9000 +Connection\PortRangeMin=6881 +Connection\ResolvePeerCountries=true +Connection\UPnP=false +Downloads\SavePath=/downloads/ +Downloads\TempPath=/downloads/incomplete/ +DynDNS\DomainName=changeme.dyndns.org +DynDNS\Enabled=false +DynDNS\Password= +DynDNS\Service=0 +DynDNS\Username= +General\Locale=zh +MailNotification\email= +MailNotification\enabled=false +MailNotification\password= +MailNotification\req_auth=true +MailNotification\req_ssl=false +MailNotification\sender=qBittorrent_notification@example.com +MailNotification\smtp_server=smtp.changeme.com +MailNotification\username= +Queueing\QueueingEnabled=true +WebUI\Address=* +WebUI\AlternativeUIEnabled=false +WebUI\AuthSubnetWhitelistEnabled=false +WebUI\BanDuration=3600 +WebUI\CSRFProtection=true +WebUI\ClickjackingProtection=true +WebUI\CustomHTTPHeaders= +WebUI\CustomHTTPHeadersEnabled=false +WebUI\HTTPS\CertificatePath= +WebUI\HTTPS\Enabled=false +WebUI\HTTPS\KeyPath= +WebUI\HostHeaderValidation=true +WebUI\LocalHostAuth=true +WebUI\MaxAuthenticationFailCount=5 +WebUI\Port=8080 +WebUI\RootFolder= +WebUI\SecureCookie=true +WebUI\ServerDomains=* +WebUI\SessionTimeout=3600 +WebUI\UseUPnP=true +WebUI\Username=admin + +[RSS] +AutoDownloader\DownloadRepacks=true +AutoDownloader\SmartEpisodeFilter=s(\\d+)e(\\d+), (\\d+)x(\\d+), "(\\d{4}[.\\-]\\d{1,2}[.\\-]\\d{1,2})", "(\\d{1,2}[.\\-]\\d{1,2}[.\\-]\\d{4})" diff --git a/example/config/rss/feeds.json b/example/config/rss/feeds.json new file mode 100644 index 0000000..2c63c08 --- /dev/null +++ b/example/config/rss/feeds.json @@ -0,0 +1,2 @@ +{ +} diff --git a/example/config/watched_folders.json b/example/config/watched_folders.json new file mode 100644 index 0000000..2c63c08 --- /dev/null +++ b/example/config/watched_folders.json @@ -0,0 +1,2 @@ +{ +} diff --git a/example/data/.gitkeep b/example/data/.gitkeep new file mode 100644 index 0000000..e69de29