Commit 093d112 yuanbin.yang
committed
1 parent fdcd856 commit 093d112 Copy full SHA for 093d112
File tree 4 files changed +11
-16
lines changed
4 files changed +11
-16
lines changed Original file line number Diff line number Diff line change 1
1
# This is an example .goreleaser.yml file with some sensible defaults.
2
2
# Make sure to check the documentation at https://goreleaser.com
3
+ version : 2
3
4
before :
4
5
hooks :
5
6
# You may remove this if you don't use go modules.
@@ -20,13 +21,6 @@ builds:
20
21
- arm
21
22
env_files :
22
23
github_token : ./github_token
23
- archives :
24
- - replacements :
25
- darwin : Darwin
26
- linux : Linux
27
- windows : Windows
28
- 386 : i386
29
- amd64 : x86_64
30
24
checksum :
31
25
name_template : ' checksums.txt'
32
26
snapshot :
Original file line number Diff line number Diff line change @@ -6,13 +6,13 @@ FROM loads/alpine:3.8
6
6
7
7
ENV WORKDIR /app
8
8
9
- ADD ./dist/qbAuto_linux_amd64/qBittorrentAutoLimitShare $WORKDIR/qBittorrentAutoLimitShare
9
+ ADD ./qbit-auto-limit $WORKDIR/qbit-auto-limit
10
10
ADD ./conf/demo.app.yaml $WORKDIR/conf/app.yaml
11
11
12
- RUN chmod +x $WORKDIR/qBittorrentAutoLimitShare
12
+ RUN chmod +x $WORKDIR/qbit-auto-limit
13
13
14
14
# ##############################################################################
15
15
# START
16
16
# ##############################################################################
17
17
WORKDIR $WORKDIR
18
- CMD ./qBittorrentAutoLimitShare
18
+ CMD ./qbit-auto-limit
Original file line number Diff line number Diff line change
1
+ # 限制上传速度 0 不限制
2
+ qbit_upload_limit : " 1"
1
3
# 限制上传分享率
2
4
qbit_upload_radio : " 1.0"
3
5
# 限制上传分享时间
4
- qbit_upload_time : " - 1"
6
+ qbit_upload_time : " 1"
5
7
# 检测跳过多少天以前的种子
6
- qbit_skip_max_complete_time : " 1 "
8
+ qbit_skip_max_complete_time : " 30 "
7
9
# 检测时间类型 1 活动时间 2 添加时间 3完成时间
8
10
qbit_check_time_type : " 1"
9
11
# 扫描间隔时间单位s
@@ -24,4 +26,4 @@ qbit_server:
24
26
# 信任的tracker 不处理限制上传分享率 一行一个
25
27
trust_trackers : " "
26
28
# 超过这个tracker数量的自动限制分享率 为0 不处理
27
- tracker_max : " 0 "
29
+ tracker_max : " 3 "
Original file line number Diff line number Diff line change 2
2
3
3
# This shell is executed before docker build.
4
4
5
- goreleaser release
5
+ # goreleaser release
6
+ CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o ./qbit-auto-limit .
6
7
docker build -t xiaoyi510/qbit-auto-limit:v0.0.7 .
7
-
8
-
You can’t perform that action at this time.
0 commit comments