commit
90f9e8402f
10 changed files with 119 additions and 3 deletions
|
|
@ -37,5 +37,5 @@ ENTRYPOINT [ "/usr/local/share/docker-init.sh" ]
|
||||||
CMD [ "sleep", "infinity" ]
|
CMD [ "sleep", "infinity" ]
|
||||||
|
|
||||||
# [Optional] Uncomment this section to install additional OS packages.
|
# [Optional] Uncomment this section to install additional OS packages.
|
||||||
# RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
|
RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
|
||||||
# && apt-get -y install --no-install-recommends <your-package-list-here>
|
&& apt-get -y install --no-install-recommends make
|
||||||
12
.github/workflows/build.yml
vendored
12
.github/workflows/build.yml
vendored
|
|
@ -22,6 +22,18 @@ jobs:
|
||||||
env:
|
env:
|
||||||
ALPINE_PKG_URL: https://pkgs.alpinelinux.org/package/edge/testing/x86_64/qbittorrent-nox
|
ALPINE_PKG_URL: https://pkgs.alpinelinux.org/package/edge/testing/x86_64/qbittorrent-nox
|
||||||
|
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
needs: check
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
|
||||||
|
- name: Build
|
||||||
|
run: make build
|
||||||
|
|
||||||
meta:
|
meta:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: check
|
needs: check
|
||||||
|
|
|
||||||
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -73,3 +73,4 @@ $RECYCLE.BIN/
|
||||||
*.lnk
|
*.lnk
|
||||||
|
|
||||||
# End of https://www.toptal.com/developers/gitignore/api/macos,windows,linux
|
# End of https://www.toptal.com/developers/gitignore/api/macos,windows,linux
|
||||||
|
|
||||||
|
|
|
||||||
34
Makefile
Normal file
34
Makefile
Normal file
|
|
@ -0,0 +1,34 @@
|
||||||
|
CMD = /usr/bin/docker
|
||||||
|
IMAGE = mogeko/qbittorrent
|
||||||
|
VERSION = 4.3.8-r0
|
||||||
|
PORT = 8080
|
||||||
|
CONF_DIR = $(shell pwd)/example/config
|
||||||
|
DL_DIR = $(shell pwd)/example/data
|
||||||
|
|
||||||
|
.PHONY: all build run help
|
||||||
|
|
||||||
|
all: build run
|
||||||
|
|
||||||
|
build:
|
||||||
|
@$(CMD) build . \
|
||||||
|
--build-arg VERSION=$(VERSION) \
|
||||||
|
--tag $(IMAGE)
|
||||||
|
|
||||||
|
run: id := $(shell head -200 /dev/urandom | cksum | cut -f1 -d " ")
|
||||||
|
run:
|
||||||
|
@-$(CMD) run -it \
|
||||||
|
--name qbt-$(id) \
|
||||||
|
-p 6881:6881 \
|
||||||
|
-p 6881:6881/udp \
|
||||||
|
-p $(PORT):8080 \
|
||||||
|
-v $(CONF_DIR):/config \
|
||||||
|
-v $(DL_DIR):/downloads \
|
||||||
|
$(IMAGE)
|
||||||
|
@$(CMD) rm -f qbt-$(id)
|
||||||
|
|
||||||
|
help: id := $(shell head -200 /dev/urandom | cksum | cut -f1 -d " ")
|
||||||
|
help:
|
||||||
|
@-$(CMD) run -it --name qbt-$(id) $(IMAGE) --help
|
||||||
|
@$(CMD) rm -f qbt-$(id)
|
||||||
|
|
||||||
|
rm: clean
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
# docker-qbittorrent
|
# docker-qbittorrent
|
||||||
|
|
||||||
[![ci_icon]][ci_link]
|
[![ci_icon]][ci_link] [![image_size]][docker_link]
|
||||||
|
|
||||||
Docker image for qBittorrent.
|
Docker image for qBittorrent.
|
||||||
|
|
||||||
|
|
@ -90,6 +90,8 @@ The code in this project is released under the [GPL-3.0 License][license].
|
||||||
|
|
||||||
[ci_icon]: https://github.com/mogeko/docker-qbittorrent/actions/workflows/auto-update.yml/badge.svg
|
[ci_icon]: https://github.com/mogeko/docker-qbittorrent/actions/workflows/auto-update.yml/badge.svg
|
||||||
[ci_link]: https://github.com/mogeko/docker-qbittorrent/actions/workflows/auto-update.yml
|
[ci_link]: https://github.com/mogeko/docker-qbittorrent/actions/workflows/auto-update.yml
|
||||||
|
[image_size]: https://img.shields.io/docker/image-size/mogeko/qbittorrent?logo=docker
|
||||||
|
[docker_link]: https://hub.docker.com/r/mogeko/qbittorrent
|
||||||
|
|
||||||
<!-- links -->
|
<!-- links -->
|
||||||
|
|
||||||
|
|
|
||||||
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