Files
PolyHermes/docker-compose.prod.env.example
T
WrBug 89fb980da7 refactor: 移除 polygon.rpc.url 配置,使用 RpcNodeService 统一管理 RPC 节点
- 删除 application.properties 中的 polygon.rpc.url 配置
- 更新 ApiHealthCheckService 直接使用 RpcNodeService.getHttpUrl()
- 删除所有 Docker Compose 配置中的 POLYGON_RPC_URL 环境变量
- 删除所有部署脚本中的 POLYGON_RPC_URL 环境变量
- 更新所有文档,移除 POLYGON_RPC_URL 相关说明
- 删除 application.properties 中无用的 position.push 配置项
- 修正日志配置中的包名(polyhermes -> polymarketbot)

现在系统通过 RpcNodeService 从数据库读取 RPC 节点配置,用户可以通过系统设置页面管理 RPC 节点,不再需要环境变量配置。
2025-12-28 04:51:07 +08:00

61 lines
2.5 KiB
Bash
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# PolyHermes 生产环境配置文件示例
# PolyHermes Production Environment Configuration File Example
#
# 使用方法 / Usage:
# 1. 复制此文件为 .env: cp docker-compose.prod.env.example .env
# Copy this file to .env: cp docker-compose.prod.env.example .env
# 2. 修改以下配置项(特别是安全相关的密钥)
# Modify the following configuration items (especially security-related keys)
# 3. 运行: docker-compose -f docker-compose.prod.yml up -d
# Run: docker-compose -f docker-compose.prod.yml up -d
# ============================================
# 数据库配置 / Database Configuration
# ============================================
# 数据库连接 URL / Database connection URL
DB_URL=jdbc:mysql://mysql:3306/polyhermes?useSSL=false&serverTimezone=UTC&characterEncoding=utf8&allowPublicKeyRetrieval=true
# 数据库用户名 / Database username
DB_USERNAME=root
# 数据库密码 / Database password
DB_PASSWORD=your_database_password_here
# ============================================
# Spring Profile
# ============================================
# Spring 环境配置(dev/prod/ Spring environment configuration (dev/prod)
SPRING_PROFILES_ACTIVE=prod
# ============================================
# 服务器端口 / Server Port
# ============================================
# 对外暴露的端口(默认 80/ External port (default 80)
SERVER_PORT=80
# ============================================
# MySQL 端口 / MySQL Port
# ============================================
# 可选,用于外部连接,默认 3307 避免与本地 MySQL 冲突
# Optional, for external connections, default 3307 to avoid conflicts with local MySQL
MYSQL_PORT=3307
# ============================================
# 安全配置 / Security Configuration
# ============================================
# ⚠️ 必须修改,不能使用默认值 / ⚠️ Must be modified, cannot use default values
#
# JWT 密钥,用于生成和验证 JWT Token
# JWT secret key, used for generating and validating JWT tokens
# 生成方式 / Generate: openssl rand -hex 64
JWT_SECRET=change-me-in-production
#
# 管理员密码重置密钥
# Admin password reset key
# 生成方式 / Generate: openssl rand -hex 32
ADMIN_RESET_PASSWORD_KEY=change-me-in-production
#
# 加密密钥,用于加密存储私钥和 API Key
# Encryption key, used for encrypting stored private keys and API keys
# 生成方式 / Generate: openssl rand -hex 32
CRYPTO_SECRET_KEY=change-me-in-production