From 0a11cff0a24bce3f2220baea4b618082e0f703db Mon Sep 17 00:00:00 2001 From: WrBug Date: Sun, 7 Dec 2025 19:08:29 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B7=BB=E5=8A=A0=20README=20=E8=AF=AD?= =?UTF-8?q?=E8=A8=80=E5=88=87=E6=8D=A2=E5=85=A5=E5=8F=A3=E5=92=8C=20Docker?= =?UTF-8?q?=20Hub=20=E7=99=BB=E5=BD=95=E6=AD=A5=E9=AA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在 README.md 和 README_EN.md 顶部添加语言切换链接 - 在 docker-delete.yml 中添加 Docker Hub 登录步骤,保持与 build workflow 的一致性 - 提前验证 Docker Hub 凭证有效性,便于排查问题 --- .github/workflows/docker-delete.yml | 6 ++++++ README.md | 2 ++ README_EN.md | 2 ++ docker-compose.prod.env.example | 12 ++++-------- 4 files changed, 14 insertions(+), 8 deletions(-) diff --git a/.github/workflows/docker-delete.yml b/.github/workflows/docker-delete.yml index ce74d48..058b087 100644 --- a/.github/workflows/docker-delete.yml +++ b/.github/workflows/docker-delete.yml @@ -10,6 +10,12 @@ jobs: runs-on: ubuntu-latest steps: + - name: Log in to Docker Hub + uses: docker/login-action@v3 + with: + username: ${{ secrets.DOCKER_USERNAME }} + password: ${{ secrets.DOCKER_PASSWORD }} + - name: Delete Docker image run: | TAG_NAME="${{ github.event.release.tag_name }}" diff --git a/README.md b/README.md index b28130b..e93f602 100644 --- a/README.md +++ b/README.md @@ -3,6 +3,8 @@ [![GitHub](https://img.shields.io/badge/GitHub-WrBug%2FPolyHermes-blue?logo=github)](https://github.com/WrBug/PolyHermes) [![Twitter](https://img.shields.io/badge/Twitter-@quant__tr-blue?logo=twitter)](https://x.com/quant_tr) +> 🌐 **Language**: [English](README_EN.md) | 中文 + 一个功能强大的 Polymarket 预测市场跟单交易系统,支持自动化跟单、多账户管理、实时订单推送和统计分析。 --- diff --git a/README_EN.md b/README_EN.md index fb99a8f..6498642 100644 --- a/README_EN.md +++ b/README_EN.md @@ -3,6 +3,8 @@ [![GitHub](https://img.shields.io/badge/GitHub-WrBug%2FPolyHermes-blue?logo=github)](https://github.com/WrBug/PolyHermes) [![Twitter](https://img.shields.io/badge/Twitter-@quant__tr-blue?logo=twitter)](https://x.com/quant_tr) +> 🌐 **Language**: English | [中文](README.md) + A powerful copy trading system for Polymarket prediction markets, supporting automated copy trading, multi-account management, real-time order push, and statistical analysis. --- diff --git a/docker-compose.prod.env.example b/docker-compose.prod.env.example index bbef8f3..3531365 100644 --- a/docker-compose.prod.env.example +++ b/docker-compose.prod.env.example @@ -35,15 +35,11 @@ POLYGON_RPC_URL=https://polygon-rpc.com # ============================================ # 安全配置(⚠️ 必须修改,不能使用默认值) # ============================================ -# 生成随机密钥命令: -# openssl rand -hex 32 # 用于 ADMIN_RESET_PASSWORD_KEY -# openssl rand -hex 64 # 用于 JWT_SECRET - -JWT_SECRET=your-jwt-secret-key-here-change-in-production -ADMIN_RESET_PASSWORD_KEY=your-admin-reset-key-here-change-in-production +JWT_SECRET=change-me-in-production +ADMIN_RESET_PASSWORD_KEY=change-me-in-production # ============================================ -# 加密密钥(可选,用于加密存储私钥和 API Key) +# 加密密钥(用于加密存储私钥和 API Key) # ============================================ -# CRYPTO_SECRET_KEY=your-crypto-secret-key-here +CRYPTO_SECRET_KEY=change-me-in-production