Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v7.3.0 #880

Merged
merged 191 commits into from
Jan 9, 2025
Merged
Show file tree
Hide file tree
Changes from 184 commits
Commits
Show all changes
191 commits
Select commit Hold shift + click to select a range
a3f9d91
Update default to v3.5.4 (#802)
renovate[bot] Dec 9, 2024
5dbc402
Update README.EN.md
CreeperAWA Dec 15, 2024
18cc9a2
Update dependency org.springframework:spring-context to v6.2.1
renovate[bot] Dec 16, 2024
a22b3fb
Merge pull request #819 from CreeperAWA/master
Gaojianli Dec 16, 2024
c149723
Merge pull request #821 from PBH-BTN/renovate/default
Gaojianli Dec 16, 2024
9e2ac3a
Bump org.springframework:spring-context from 6.2.0 to 6.2.1
dependabot[bot] Dec 16, 2024
ceca8a3
更改下载源
Ghost-chu Dec 17, 2024
e4ed71f
Update README
Ghost-chu Dec 17, 2024
441a865
Update dependency io.javalin:javalin to v6.4.0
renovate[bot] Dec 17, 2024
77282e6
安装执行前结束 PeerBanHelper 进程 #718
Ghost-chu Dec 18, 2024
f8c144b
安装执行前运行上个版本的卸载器 #718
Ghost-chu Dec 18, 2024
0816eef
卸载时删除旧的文件夹
Ghost-chu Dec 18, 2024
f8dba64
Bump com.google.guava:guava from 33.3.1-jre to 33.4.0-jre
dependabot[bot] Dec 23, 2024
92c26b5
Bump org.junit.jupiter:junit-jupiter-api from 5.11.3 to 5.11.4
dependabot[bot] Dec 23, 2024
37f1936
Bump ch.qos.logback:logback-classic from 1.5.12 to 1.5.15
dependabot[bot] Dec 23, 2024
c6e09e0
Bump io.javalin:javalin from 6.3.0 to 6.4.0
dependabot[bot] Dec 23, 2024
10ba509
Merge pull request #825 from PBH-BTN/renovate/io.javalin-javalin-6.x
Gaojianli Dec 23, 2024
73d3762
Update pom.xml
Gaojianli Dec 24, 2024
7846320
fixed #828
Ghost-chu Dec 26, 2024
e0cc20c
bump to install4j11
Ghost-chu Dec 26, 2024
4542a94
Merge pull request #840 from PBH-BTN/dependabot/maven/io.javalin-java…
Ghost-chu Dec 26, 2024
f206206
Merge pull request #839 from PBH-BTN/dependabot/maven/ch.qos.logback-…
Ghost-chu Dec 26, 2024
693941b
Merge pull request #838 from PBH-BTN/dependabot/maven/org.junit.jupit…
Ghost-chu Dec 26, 2024
b9f3018
Merge pull request #837 from PBH-BTN/dependabot/maven/com.google.guav…
Ghost-chu Dec 26, 2024
316556d
Merge pull request #823 from PBH-BTN/dependabot/maven/org.springframe…
Ghost-chu Dec 26, 2024
38c5b0b
允许暂停下载器 #833
Ghost-chu Dec 26, 2024
a06b86e
Use dnsjava/dnsjava as DNS Provider, also add it's experiment in lab,…
Ghost-chu Dec 26, 2024
e999eb1
自动 VACUUM DB 文件 #843
Ghost-chu Dec 26, 2024
f1fa966
允许全量 VACUUM #843
Ghost-chu Dec 26, 2024
4fbf0d4
Merge branch 'refs/heads/master' into dev
Ghost-chu Dec 27, 2024
1ec950f
bump version
Ghost-chu Dec 27, 2024
1d7b1ea
排除 install4j output 目录
Ghost-chu Dec 27, 2024
1c0e387
Add PTRBlacklist #834
Ghost-chu Dec 27, 2024
2ac28ee
Downgrade log level from info to debug
Ghost-chu Dec 27, 2024
c558b93
Merge branch 'refs/heads/master' into dev
Ghost-chu Dec 27, 2024
1005c46
update Tor Exit Nodes list, closed #845
Ghost-chu Dec 27, 2024
1661ef3
Update dependency com.github.mizosoft.methanol:methanol to v1.8.0
renovate[bot] Dec 27, 2024
0d8f3ab
查询支持 PTR 记录
Ghost-chu Dec 27, 2024
9887963
怎么有两个 BtnNetwork
Ghost-chu Dec 28, 2024
e00e0c0
Revert "怎么有两个 BtnNetwork"
Ghost-chu Dec 28, 2024
427ac8a
提前初始化 AV 脚本引擎
Ghost-chu Dec 28, 2024
28711c1
Reapply "怎么有两个 BtnNetwork"
Ghost-chu Dec 28, 2024
42c294c
DNS 反查在 populate 中启用
Ghost-chu Dec 28, 2024
fd2c2db
检查配置文件
Ghost-chu Dec 28, 2024
1518f7c
检查配置文件
Ghost-chu Dec 28, 2024
2aad41b
修复Telegram的配置文件升级的漏网之鱼
Ghost-chu Dec 28, 2024
064cf26
添加 BTN 的 ConfigResult
Ghost-chu Dec 29, 2024
3e921a7
是否握手交给 Peer 判断
Ghost-chu Dec 29, 2024
6a1d5fa
Register PTRBlacklist module #834
Ghost-chu Dec 29, 2024
0c16693
Merge pull request #846 from PBH-BTN/renovate/com.github.mizosoft.met…
Ghost-chu Dec 29, 2024
1291ef4
Update dependency @octokit/request-error to v6.1.6 (#835)
renovate[bot] Dec 29, 2024
7d18ca9
图标干掉自动刷新 fix #829
Gaojianli Dec 30, 2024
cef6880
修复倒计时可能为空的问题
Gaojianli Dec 30, 2024
6c8d371
修复滚动 fix #847
Gaojianli Dec 30, 2024
ecced76
fixed size
Gaojianli Dec 30, 2024
f6c79bc
调整一下样式避免出现滚动条
Gaojianli Dec 30, 2024
0f06875
Update dependency @formatjs/intl-durationformat to ^0.7.0
renovate[bot] Dec 30, 2024
2eedef5
Update dependency @vueuse/core to v12.2.0
renovate[bot] Dec 30, 2024
e249c94
Update dependency echarts to v5.6.0
renovate[bot] Dec 30, 2024
6cb2269
Update dependency vue-i18n to v11
renovate[bot] Dec 30, 2024
abb94f4
Merge pull request #861 from PBH-BTN/renovate/vue-i18n-11.x
Gaojianli Dec 30, 2024
8294e74
Merge pull request #858 from PBH-BTN/renovate/formatjs-monorepo
Gaojianli Dec 30, 2024
d96dc12
Merge pull request #860 from PBH-BTN/renovate/echarts-5.x-lockfile
Gaojianli Dec 30, 2024
3fee7ce
Merge pull request #859 from PBH-BTN/renovate/vueuse-monorepo
Gaojianli Dec 30, 2024
d18779a
upgrade desp
Gaojianli Dec 30, 2024
e6d07fe
upgrade deps
Gaojianli Dec 30, 2024
4250153
cleanup
Ghost-chu Dec 30, 2024
65f33c5
支持 DOH
Ghost-chu Dec 30, 2024
bdddb30
暂停状态
Ghost-chu Dec 30, 2024
1a8f797
Bump com.github.mizosoft.methanol:methanol from 1.7.0 to 1.8.0
dependabot[bot] Dec 30, 2024
002f027
Merge pull request #863 from PBH-BTN/dependabot/maven/com.github.mizo…
Ghost-chu Dec 30, 2024
036288a
Fix NPE bug
Ghost-chu Dec 31, 2024
3ec3528
IP 黑名单列表封禁允许显示封禁原因(行尾注释)
Ghost-chu Dec 31, 2024
dfabc2f
支持规则前单行、多行注释
Ghost-chu Dec 31, 2024
a322e55
支持规则前单行、多行注释
Ghost-chu Dec 31, 2024
aba4a84
fix build
Ghost-chu Dec 31, 2024
22e553d
支持 i18n
Ghost-chu Dec 31, 2024
7f12faa
翻译文本
Ghost-chu Dec 31, 2024
da6a0a1
忽略 webui/vite.config.ts.timestamp-xxx 文件
Ghost-chu Jan 1, 2025
f25d198
添加解封全部按钮
Ghost-chu Jan 1, 2025
6da6f7d
支持下载器暂停功能
Ghost-chu Jan 1, 2025
c7d6adf
pcb 适配 Peer 手动解除封禁
Ghost-chu Jan 1, 2025
432b756
PCB 解除封禁时归零给定记录数据
Ghost-chu Jan 1, 2025
052a791
全局暂停功能
Ghost-chu Jan 1, 2025
119fc94
Update dependency org.json:json to v20241224
renovate[bot] Jan 1, 2025
8751fb8
Merge pull request #864 from PBH-BTN/renovate/org.json-json-20241224.x
Ghost-chu Jan 2, 2025
b96d2ab
Revert "添加解封全部按钮"
Gaojianli Jan 3, 2025
96c02c8
添加解封全部按钮
Ghost-chu Jan 1, 2025
962f699
修改暂停功能,解决编译错误
Gaojianli Jan 3, 2025
7066bd5
fix format
Gaojianli Jan 3, 2025
2df9a55
微调颜色
Gaojianli Jan 3, 2025
aaa0e1c
add globla pause status
Gaojianli Jan 3, 2025
2cb5e7d
finish global pause mode
Gaojianli Jan 3, 2025
454ad78
warning
Gaojianli Jan 3, 2025
317d016
add dns settings
Gaojianli Jan 3, 2025
a04d310
add btn config result
Gaojianli Jan 3, 2025
e3d161c
fix #867
Gaojianli Jan 3, 2025
c5564f6
bump version
Ghost-chu Jan 3, 2025
5fa39b6
remove useless console.log
Gaojianli Jan 3, 2025
ce516cb
列表为空时禁用“解封全部”按钮
Gaojianli Jan 3, 2025
f9f5fd0
Merge remote-tracking branch 'origin/dev' into dev
Ghost-chu Jan 3, 2025
37cc3fc
final 一下该 final 的
Ghost-chu Jan 3, 2025
8db370a
添加 -Xms16M 参数
Ghost-chu Jan 3, 2025
5d3bbc0
添加全局暂停按钮
Ghost-chu Jan 3, 2025
93a49e3
clean code
Gaojianli Jan 3, 2025
fa7a6e2
标准化 IP 地址 #849
Ghost-chu Jan 3, 2025
fc5c68a
本地化 BTN 状态响应信息
Ghost-chu Jan 3, 2025
2f1aeac
打印额外的提示信息
Ghost-chu Jan 3, 2025
4f5b5a7
打印额外的提示信息
Ghost-chu Jan 3, 2025
2d339d9
打印额外的提示信息用作调试,需要删除!
Ghost-chu Jan 3, 2025
2026fb7
打印额外的提示信息用作调试,需要删除!
Ghost-chu Jan 3, 2025
a7edb0b
删了
Ghost-chu Jan 3, 2025
4438627
修复快照不封禁 Peer 的问题
Ghost-chu Jan 3, 2025
36b0adc
撤销debug更改
Ghost-chu Jan 3, 2025
de565d1
finish ptr profie
Gaojianli Jan 4, 2025
8b20324
修复 Hacky 的配置文件处理
Ghost-chu Jan 4, 2025
6e3f4e0
Merge remote-tracking branch 'origin/dev' into dev
Ghost-chu Jan 4, 2025
0e37437
fix lint
Gaojianli Jan 4, 2025
a3f2a81
适配真正的search
Gaojianli Jan 4, 2025
9c39692
我搜索怎么没了
Ghost-chu Jan 4, 2025
8ec3951
Merge remote-tracking branch 'origin/dev' into dev
Ghost-chu Jan 4, 2025
90383aa
新添加的在最前面
Gaojianli Jan 4, 2025
25410ba
修复 IPBlackRuleList 不起作用的问题
Ghost-chu Jan 6, 2025
1a07d6c
bump webui version
Gaojianli Jan 6, 2025
f6034ac
修复搜索为空的时候导致的无限循环问题
Gaojianli Jan 6, 2025
8225026
upgrade deps
Gaojianli Jan 6, 2025
2564258
Bump org.json:json from 20240303 to 20241224
dependabot[bot] Jan 6, 2025
3489116
Bump ch.qos.logback:logback-classic from 1.5.15 to 1.5.16
dependabot[bot] Jan 6, 2025
a73807c
add comment
Ghost-chu Jan 6, 2025
926d3b3
Merge remote-tracking branch 'origin/dev' into dev
Ghost-chu Jan 6, 2025
add2281
Merge pull request #870 from PBH-BTN/dev
Ghost-chu Jan 6, 2025
2c08163
再修下 BUG
Ghost-chu Jan 6, 2025
bfef529
Merge pull request #872 from PBH-BTN/dependabot/maven/ch.qos.logback-…
Ghost-chu Jan 6, 2025
a74e290
Merge pull request #871 from PBH-BTN/dependabot/maven/org.json-json-2…
Ghost-chu Jan 6, 2025
4131186
暂时关了自定义 DNS 能力
Ghost-chu Jan 6, 2025
ab0c022
强制系统dns
Gaojianli Jan 6, 2025
5fca4b0
全部解封后需要同步封禁列表
Ghost-chu Jan 6, 2025
4a061e1
Merge pull request #874 from PBH-BTN/dev
Ghost-chu Jan 6, 2025
108fd3f
挪窝
Ghost-chu Jan 6, 2025
3b37325
Merge remote-tracking branch 'origin/master'
Ghost-chu Jan 6, 2025
6697e88
add some neuro easter eggs
Ghost-chu Jan 7, 2025
934331f
bump version
Ghost-chu Jan 7, 2025
a73ca5d
update install4j profile
Ghost-chu Jan 7, 2025
cebd859
应用新的内存设置到平台包
Ghost-chu Jan 7, 2025
7c58248
更改 PBH Docker 基本镜像
Ghost-chu Jan 7, 2025
120c40e
修复 HikariCP 初始化时的有关 KeepAlive 的警告
Ghost-chu Jan 7, 2025
f718803
分离 Docker 基础包,添加 s390x 架构支持
Ghost-chu Jan 7, 2025
e163051
基础镜像不支持 s390x 淦
Ghost-chu Jan 7, 2025
b3ab506
do not use alpine
Ghost-chu Jan 8, 2025
e8482d7
Update dependency org.json:json to v20250107
renovate[bot] Jan 8, 2025
89e71f2
Update src/main/java/com/ghostchu/peerbanhelper/module/impl/webapi/PB…
Ghost-chu Jan 8, 2025
d37836f
Update src/main/java/com/ghostchu/peerbanhelper/module/impl/webapi/PB…
Ghost-chu Jan 8, 2025
8290e79
Update src/main/java/com/ghostchu/peerbanhelper/downloader/impl/qbitt…
Ghost-chu Jan 8, 2025
c96ed73
add another result for easter egg
Ghost-chu Jan 8, 2025
4ff1ba5
Merge pull request #876 from PBH-BTN/renovate/org.json-json-20250107.x
Ghost-chu Jan 8, 2025
d05966c
Update docker/build-push-action action to v6.11.0
renovate[bot] Jan 8, 2025
aefd2ef
bump version
Ghost-chu Jan 8, 2025
5b1f692
fix missing space in startup flags and remove invalid flag
Ghost-chu Jan 8, 2025
267f272
fix possible configResult null
Ghost-chu Jan 8, 2025
93495eb
Update src/main/java/com/ghostchu/peerbanhelper/downloader/Downloader…
Ghost-chu Jan 8, 2025
f4c6165
volatile
Ghost-chu Jan 8, 2025
b3ae980
Merge remote-tracking branch 'origin/master'
Ghost-chu Jan 8, 2025
e31f0b2
Fix the rule check looping
Ghost-chu Jan 8, 2025
992994d
Update src/main/java/com/ghostchu/peerbanhelper/downloader/AbstractDo…
Ghost-chu Jan 8, 2025
07a27b4
添加一个超时
Ghost-chu Jan 8, 2025
d27f4cc
Merge remote-tracking branch 'origin/master'
Ghost-chu Jan 8, 2025
af5d6b5
Merge pull request #877 from PBH-BTN/renovate/docker-build-push-actio…
Gaojianli Jan 8, 2025
8c7e9fb
听兔子的话
Ghost-chu Jan 8, 2025
b758e1f
听兔子的话,搜索忽略大小写
Ghost-chu Jan 8, 2025
439d87b
修復一些潛在的問題
Gaojianli Jan 8, 2025
8197ff6
换成 Exception
Ghost-chu Jan 8, 2025
8e50b9d
少了 return
paulzzh Jan 8, 2025
395a894
Merge branch 'dev'
Gaojianli Jan 9, 2025
b470a7b
还我docker 构建
Gaojianli Jan 9, 2025
94c6a1d
修改启动参数
Ghost-chu Jan 9, 2025
dad2df5
去掉自动解封全部 IP 的提示信息
Ghost-chu Jan 9, 2025
2571583
Update src/main/java/com/ghostchu/peerbanhelper/util/rule/RuleParser.…
Ghost-chu Jan 9, 2025
c4c9258
Update Dockerfile-Primary
Ghost-chu Jan 9, 2025
fd8a95e
fix variable
Ghost-chu Jan 9, 2025
47e7556
修复多处 IPTries 的包含检查判断问题
Ghost-chu Jan 9, 2025
62ff6c9
修复嵌套翻译文本问题
Ghost-chu Jan 9, 2025
eb26641
修复另外一些翻译文本问题
Ghost-chu Jan 9, 2025
272d479
修复配置文件重载后 BTN 模块可能提示已加载 0 个能力并停止工作的问题
Ghost-chu Jan 9, 2025
011400d
fix ci
Ghost-chu Jan 9, 2025
88e3bad
Revert "fix ci"
Ghost-chu Jan 9, 2025
d490df3
Revert "do not use alpine"
Ghost-chu Jan 9, 2025
cc2bdf3
Revert "基础镜像不支持 s390x 淦"
Ghost-chu Jan 9, 2025
1ba876d
Revert "分离 Docker 基础包,添加 s390x 架构支持"
Ghost-chu Jan 9, 2025
330b104
Revert "更改 PBH Docker 基本镜像"
Ghost-chu Jan 9, 2025
b011945
丢掉俩架构
Ghost-chu Jan 9, 2025
909c749
纠正 ENTRYPOINT
Ghost-chu Jan 9, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
54 changes: 51 additions & 3 deletions .github/workflows/jvm-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,18 +62,66 @@ jobs:
type=raw,ci-jvm-universal
type=raw,ci
type=sha
- name: Build and push Docker image (Primary)
uses: docker/[email protected]
with:
context: .
file: ./Dockerfile-Primary
push: true
platforms: |
linux/amd64
linux/arm64/v8
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}-jvm-universal
cache-from: type=gha
cache-to: type=gha,mode=max
- name: Build and push Docker image (Secondary)
uses: docker/[email protected]
with:
context: .
file: ./Dockerfile-Secondary
push: true
platforms: |
linux/riscv64
linux/ppc64le
tags: ${{ steps.meta.outputs.tags }}-secondary
labels: ${{ steps.meta.outputs.labels }}-secondary
cache-from: type=gha
cache-to: type=gha,mode=max
Build_Docker_Standalone:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set Up QEMU
uses: docker/setup-qemu-action@v3
- name: Set Up Buildx
uses: docker/setup-buildx-action@v3
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/[email protected]
with:
images: ghostchu/peerbanhelper-snapshot
tags: |
type=ref,event=branch
type=ref,event=tag
type=ref,event=pr
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=raw,ci-jvm-universal
type=raw,ci
type=sha
Ghost-chu marked this conversation as resolved.
Show resolved Hide resolved
- name: Build and push Docker image
uses: docker/[email protected]
with:
context: .
file: ./Dockerfile
push: true
push: false
platforms: |
linux/amd64
linux/arm64/v8
linux/riscv64
linux/ppc64le
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}-jvm-universal
tags: ${{ steps.meta.outputs.tags }}-secondary
labels: ${{ steps.meta.outputs.labels }}-secondary
cache-from: type=gha
cache-to: type=gha,mode=max
40 changes: 33 additions & 7 deletions .github/workflows/jvm-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -158,15 +158,28 @@ jobs:
type=raw,latest-jvm-universal
type=raw,latest
type=sha
- name: Build and push Docker image
- name: Build and push Docker image (Primary - Popular architecture)
uses: docker/[email protected]
with:
context: .
file: ./Dockerfile
file: ./Dockerfile-Primary
push: true
platforms: |
linux/amd64
linux/arm64/v8
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}-jvm-universal
cache-from: type=gha
cache-to: type=gha,mode=max
build-args: |
GIT_HASH=${{ github.sha }}
- name: Build and push Docker image (Secondary - Non popular architecture)
uses: docker/[email protected]
with:
context: .
file: ./Dockerfile-Secondary
push: true
platforms: |
linux/riscv64
linux/ppc64le
tags: ${{ steps.meta.outputs.tags }}
Expand All @@ -175,14 +188,16 @@ jobs:
cache-to: type=gha,mode=max
build-args: |
GIT_HASH=${{ github.sha }}


# ---------------- ALIYUN ACR --------------------
- name: Log in to Aliyun ACR
uses: docker/login-action@v3
with:
registry: "registry.cn-hangzhou.aliyuncs.com"
username: ${{ secrets.ALIYUN_ACR_USERNAME }}
password: ${{ secrets.ALIYUN_ACR_PASSWORD }}
- name: Extract metadata (tags, labels) for Aliyun ACR
- name: Extract metadata (tags, labels) for Aliyun ACR (Primary - Popular architecture)
id: meta-acr
uses: docker/[email protected]
with:
Expand All @@ -196,18 +211,29 @@ jobs:
type=raw,latest-jvm-universal
type=raw,latest
type=sha
- name: Build and push Aliyun ACR
- name: Build and push Aliyun ACR (Primary)
uses: docker/[email protected]
with:
context: .
file: ./Dockerfile-Release
file: ./Dockerfile-Primary
push: true
platforms: |
linux/amd64
linux/arm64/v8
linux/riscv64
linux/ppc64le
tags: ${{ steps.meta-acr.outputs.tags }}
labels: ${{ steps.meta-acr.outputs.labels }}-jvm-universal
cache-from: type=gha
cache-to: type=gha,mode=max
- name: Build and push Aliyun ACR (Secondary - Non popular architecture)
uses: docker/[email protected]
with:
context: .
file: ./Dockerfile-Secondary
push: true
platforms: |
linux/riscv64
linux/ppc64le
tags: ${{ steps.meta-acr.outputs.tags }}-secondary
labels: ${{ steps.meta-acr.outputs.labels }}-secondary
cache-from: type=gha
cache-to: type=gha,mode=max
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,4 @@ dependency-reduced-pom.xml

PeerBanHelper.jar
*.pkg
install4j/output
12 changes: 12 additions & 0 deletions Dockerfile-Primary
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# 主 Dockerfile,构建主流架构平台的镜像 (amd64, aarch64),使用 Musl 版本的 Liberica JRE 23,压缩体积
FROM docker.io/bellsoft/liberica-runtime-container:jre-23-slim-musl
LABEL maintainer="https://github.com/PBH-BTN/PeerBanHelper"
COPY target/libraries /app/libraries
COPY target/PeerBanHelper.jar /app/PeerBanHelper.jar
USER 0
EXPOSE 9898
ENV TZ=UTC
ENV JAVA_OPTS="-Dpbh.release=docker -Djava.awt.headless=true -Xmx512M -Xms16M -Xss512k -XX:+UseG1GC -XX:+UseStringDeduplication -XX:+ShrinkHeapInSteps"
WORKDIR /app
VOLUME /tmp
ENTRYPOINT ["sh", "-c", "${JAVA_HOME}/bin/java ${JAVA_OPTS} -jar PeerBanHelper.jar"]
5 changes: 3 additions & 2 deletions Dockerfile-Release → Dockerfile-Secondary
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
FROM docker.io/eclipse-temurin:23-jre-noble
# 主 Dockerfile,构建其它架构平台的镜像 (risc-v, s390x 等),使用 Alpine 版本的 Temurin JRE 23,压缩体积
FROM docker.io/eclipse-temurin:23.0.1_11-jre
LABEL maintainer="https://github.com/PBH-BTN/PeerBanHelper"
COPY target/libraries /app/libraries
COPY target/PeerBanHelper.jar /app/PeerBanHelper.jar
USER 0
EXPOSE 9898
ENV TZ=UTC
ENV JAVA_OPTS="-Dpbh.release=docker -Djava.awt.headless=true -Xmx512M -Xss512k -XX:+UseG1GC -XX:+UseStringDeduplication -XX:+ShrinkHeapInSteps"
ENV JAVA_OPTS="-Dpbh.release=docker -Djava.awt.headless=true -Xmx512M -Xms16M -Xss512k -XX:+UseG1GC -XX:+UseStringDeduplication -XX:+ShrinkHeapInSteps"
WORKDIR /app
VOLUME /tmp
ENTRYPOINT ${JAVA_HOME}/bin/java ${JAVA_OPTS} -jar PeerBanHelper.jar

Check warning on line 12 in Dockerfile-Secondary

View workflow job for this annotation

GitHub Actions / Build_Docker

JSON arguments recommended for ENTRYPOINT/CMD to prevent unintended behavior related to OS signals

JSONArgsRecommended: JSON arguments recommended for ENTRYPOINT to prevent unintended behavior related to OS signals More info: https://docs.docker.com/go/dockerfile/rule/json-args-recommended/
16 changes: 13 additions & 3 deletions README.EN.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Automatically block unwanted, leeches and abnormal BT peers with support for cus
![page-views](https://raw.githubusercontent.com/PBH-BTN/views-counter/refs/heads/master/svg/754169590/badge.svg)
## Introduction

Following function are provided by PeerBanHelper:
The following functions are provided by PeerBanHelper:

- [PeerID Blacklist](https://docs.pbh-btn.com/en/docs/module/peer-id)
- [Client Name Blacklist](https://docs.pbh-btn.com/en/docs/module/client-name)
Expand All @@ -19,7 +19,7 @@ Following function are provided by PeerBanHelper:
- [IP set subscribe](https://docs.pbh-btn.com/en/docs/module/ip-address-blocker-rules)
- A modern WebUI

In addition, PeerBanHelper downloads the GeoIP library at startup, and supports the following functions once it successful loaded:
In addition, PeerBanHelper downloads the GeoIP library at startup and supports the following functions once it has been successfully loaded:
- View IP address attribution, AS information (ASN, ISP, AS name, etc.), network type information (broadband, base station, IoT, data center, etc.) in the blocking list.
- Based on GeoIP information, block IP addresses by country/region, city, network type, ASN and so on.
- View GeoIP statistics
Expand All @@ -34,7 +34,7 @@ In addition, PeerBanHelper downloads the GeoIP library at startup, and supports
- BiglyBT([plugin](https://github.com/PBH-BTN/PBH-Adapter-BiglyBT) is required)
- Deluge([plugin](https://github.com/PBH-BTN/PBH-Adapter-Deluge) is required)
- Azureus(Vuze)([plugin](https://github.com/PBH-BTN/PBH-Adapter-Azureus) is required)
- Transmission **(deprecated3.00-20 or higher)**
- Transmission **(deprecated; 3.00-20 or higher)**
- BitComet **v2.10 Beta6 [20240928] or higher** (P2SP LTSeed mode is not supported)


Expand Down Expand Up @@ -68,12 +68,22 @@ Any consequences caused by the user's use of this software are borne by the user

[![Star History Chart](https://api.star-history.com/svg?repos=PBH-BTN/PeerBanHelper&type=Date)](https://star-history.com/#PBH-BTN/PeerBanHelper&Date)

## Tools

In the development process of PeerBanHelper, we have used many excellent professional tools. Thanks to the following companies or projects for providing open-source licenses:

### Install4j

PeerBanHelper use [Install4j multi-platform installer builder](https://www.ej-technologies.com/products/install4j/overview.html) to build its multi-platform installer. Thanks the open-source license provided by ej-technolgies. Click the link or the image below to download install4j.

[![Install4j](https://www.ej-technologies.com/images/product_banners/install4j_large.png)](https://www.ej-technologies.com/products/install4j/overview.html)

### JProfiler

PeerBanHelper use [JProfiler all-in one Java profiler](https://www.ej-technologies.com/jprofiler) to analyze and optimize the program. Thanks the open-source license provided by ej-technolgies. Click the link or the image below to download JProfiler.

[![JProfiler](https://www.ej-technologies.com/images/product_banners/jprofiler_large.png)](https://www.ej-technologies.com/jprofiler)

## Credit

### Backend
Expand Down
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,13 +69,22 @@ PeerBanHelper 仅支持对传统 IPv4 或 IPv6 地址的反吸血,如遇 I2P

[![Star History Chart](https://api.star-history.com/svg?repos=PBH-BTN/PeerBanHelper&type=Date)](https://star-history.com/#PBH-BTN/PeerBanHelper&Date)

## Tools

在 PeerBanHelper 的开发过程中,我们使用到了许多优秀的专业工具。感谢下面的公司或项目慷慨的提供开源许可证:

### Install4j

PeerBanHelper 使用 [Install4j multi-platform installer builder](https://www.ej-technologies.com/products/install4j/overview.html) 打包多平台安装程序。感谢 ej-technolgies 的开放源代码许可证。点击链接或者下面的图片下载 install4j。

[![Install4j](https://www.ej-technologies.com/images/product_banners/install4j_large.png)](https://www.ej-technologies.com/products/install4j/overview.html)

### JProfiler

PeerBanHelper 使用 [JProfiler all-in one Java profiler](https://www.ej-technologies.com/jprofiler) 对程序进行性能分析与优化。感谢 ej-technolgies 的开放源代码许可证。点击链接或者下面的图片下载 JProfiler。

[![JProfiler](https://www.ej-technologies.com/images/product_banners/jprofiler_large.png)](https://www.ej-technologies.com/jprofiler)

## Credit

### Backend
Expand Down
Loading
Loading