GitDeployHub

xuya-dev/token-hub

github.com/xuya-dev/token-hub ↗
Docker
13 environment variables found in .env.example

Set these on your host before deploying. Each platform has an “Environment Variables” section in the deploy flow.

  • MYSQL_PASSWORD secret 数据库密码(MySQL 业务用户)
  • MYSQL_ROOT_PASSWORD secret 数据库 root 密码(仅 docker-compose 初始化使用)
  • REDIS_PASSWORD secret Redis 密码
  • JWT_SECRET_KEY secret JWT 密钥,至少 32 字节,建议用 `openssl rand -base64 48` 生成
  • ENCRYPTION_KEY secret 渠道密钥加密密钥,必须 32 字节 hex(64 个十六进制字符),用 `openssl rand -hex 32` 生成
  • CORS_ALLOWED_ORIGINS CORS 允许的源(生产必填,逗号分隔多个域名)
  • ACTUATOR_TOKEN secret Actuator 端点访问 token,留空则禁止外部访问 actuator
  • APP_PORT 应用监听端口(默认 3000,仅绑定到 127.0.0.1)
  • MYSQL_PORT
  • REDIS_PORT
  • SPRING_DATASOURCE_URL 数据库连接 URL(dev profile 使用)
  • SPRING_DATASOURCE_USERNAME
  • SPRING_DATASOURCE_PASSWORD secret
Best match Fly.io Anything Dockerized — requires the Fly CLI.
macOS
brew install flyctl && fly launch --from https://github.com/xuya-dev/token-hub
Linux
curl -L https://fly.io/install.sh | sh && fly launch --from https://github.com/xuya-dev/token-hub
Windows (PowerShell)
iwr https://fly.io/install.ps1 -useb | iex; fly launch --from https://github.com/xuya-dev/token-hub
Or deploy to a different host
← Try another repo