build: creat an example dir for test
This commit is contained in:
parent
54fe139a46
commit
79b62aba7f
7 changed files with 69 additions and 4 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
|
@ -74,5 +74,3 @@ $RECYCLE.BIN/
|
|||
|
||||
# End of https://www.toptal.com/developers/gitignore/api/macos,windows,linux
|
||||
|
||||
# Custom dir for test
|
||||
tests/
|
||||
|
|
|
|||
4
Makefile
4
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
|
||||
|
||||
|
|
|
|||
2
example/config/qBittorrent-data.conf
Normal file
2
example/config/qBittorrent-data.conf
Normal file
|
|
@ -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)
|
||||
61
example/config/qBittorrent.conf
Normal file
61
example/config/qBittorrent.conf
Normal file
|
|
@ -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})"
|
||||
2
example/config/rss/feeds.json
Normal file
2
example/config/rss/feeds.json
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
{
|
||||
}
|
||||
2
example/config/watched_folders.json
Normal file
2
example/config/watched_folders.json
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
{
|
||||
}
|
||||
0
example/data/.gitkeep
Normal file
0
example/data/.gitkeep
Normal file
Loading…
Add table
Reference in a new issue