Skip to content

Commit

Permalink
perf: docker compose 中删除 openssl-legacy-provider 并添加 TG_CONNECTION
Browse files Browse the repository at this point in the history
  • Loading branch information
clansty committed Nov 8, 2023
1 parent dc67447 commit 9ee8f85
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,5 @@ COPY prisma /app/
RUN pnpm exec prisma generate
COPY --from=build /app/build /app/build

ENV TG_CONNECTION=websocket
ENV DATA_DIR=/app/data
CMD pnpm start
2 changes: 1 addition & 1 deletion docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ services:
volumes:
- q2tg:/app/data
environment:
- NODE_OPTIONS=--openssl-legacy-provider
- TG_API_ID=
- TG_API_HASH=
- TG_BOT_TOKEN=
Expand All @@ -57,6 +56,7 @@ services:
- ZINC_PASSWORD=password
- SIGN_API=http://sign:8080/sign?key=114514
- SIGN_VER=8.9.71 # 与上方 sign 容器的配置同步
- TG_CONNECTION=tcp # 连接 Telegram 的方式,也可以改成 websocket
# 要支持转发时自动识别语音,请设置以下参数
- BAIDU_APP_ID=
- BAIDU_API_KEY=
Expand Down

0 comments on commit 9ee8f85

Please sign in to comment.