Skip to content

Commit

Permalink
push v1.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
bennett committed Jun 29, 2023
1 parent a7e0c31 commit cb78d84
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 11 deletions.
7 changes: 4 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM alpine AS BASE

ARG QSign_VERSION="1.0.5"
ARG QSign_VERSION="1.1.0"
ARG QQ_VERSION="8.9.63"

RUN apk add --no-cache --update \
Expand All @@ -18,15 +18,16 @@ RUN apk add --no-cache --update \
FROM eclipse-temurin:8-jre-alpine

ARG GOSU_VERSION=1.16
ARG QSign_VERSION="1.0.5"
ARG QSign_VERSION="1.1.0"

LABEL authors="bennett"
LABEL description="QQ签名API服务"
LABEL version="$QSign_VERSION"

ENV TZ=Asia/Shanghai \
COUNT=1 \
ANDROID_ID=""
ANDROID_ID="" \
DYNAMIC=false

RUN apk add --no-cache --update \
libstdc++ \
Expand Down
15 changes: 8 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ docker run -d \
-p 8080:80 \
-e COUNT=1 \
-e ANDROID_ID=<your android_id> \
bennettwu/qsign-server:1.0.5
bennettwu/qsign-server:1.1.0
```

然后使用 `http://127.0.0.1:8080/sign` 作为签名服务地址即可。
Expand All @@ -24,7 +24,7 @@ bennettwu/qsign-server:1.0.5
version: "3"
services:
qsign-server:
image: bennettwu/qsign-server:1.0.5
image: bennettwu/qsign-server:1.1.0
ports:
- "8080:80"
environment:
Expand All @@ -39,8 +39,9 @@ services:
## 环境变量
| 名称 | 默认值 | 描述 |
|:-----------|:-------------:|:------------------------------------------|
| COUNT | 1 | unidbg 实例数量 (建议等于核心数) 【数值越大并发能力越强,内存占用越大】 |
| ANDROID_ID | 无 | `device.json` 中的 `android_id` 值 |
| TZ | Asia/Shanghai | 时区 |
| 名称 | 默认值 | 描述 |
|:-----------|:-------------:|:-----------------------------------------------------------------------------------------|
| COUNT | 1 | unidbg 实例数量 (建议等于核心数) 【数值越大并发能力越强,内存占用越大】 |
| ANDROID_ID | 无 | `device.json` 中的 `android_id` 值 |
| TZ | Asia/Shanghai | 时区 |
| DYNAMIC | false | 是否开启动态引擎(加速Sign计算,有时候会出现[#52](https://github.com/fuqiuluo/unidbg-fetch-qsign/issues/52)) |
9 changes: 8 additions & 1 deletion docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,11 @@ set -e

chown -R "$(id -u qsign)":"$(id -u qsign)" .

exec gosu qsign sh bin/unidbg-fetch-qsign --host=0.0.0.0 --port=80 --count="$COUNT" --library=/app/txlib --android_id="$ANDROID_ID" "$@"
exec gosu qsign sh bin/unidbg-fetch-qsign \
--host=0.0.0.0 \
--port=80 \
--count="$COUNT" \
--library=/app/txlib \
--android_id="$ANDROID_ID" \
--dynamic="$DYNAMIC" \
"$@"

0 comments on commit cb78d84

Please sign in to comment.