Skip to content

发布-20250413

Choose a tag to compare

@github-actions github-actions released this 13 Apr 00:56
· 12 commits to dev since this release

Full Changelog: release-20250410...release-20250413

# /etc/keyframeGo.yaml
# 基础配置
Name: keyframeGo  # 服务名称
Host: 0.0.0.0     # 监听地址
Port: 8888        # 服务端口

# 开发服务器配置
DevServer:
  Enabled: true   # 是否启用开发模式
  Port: 6470      # Prometheus监控端口
  MetricsPath: /metrics  # 监控指标路径
  EnableMetrics: true    # 是否启用监控

# Redis缓存配置
Cache:
  - Host: 127.0.0.1:6379  # Redis地址
    Pass: your_password   # Redis密码

# MySQL数据库配置
DB:
  DataSource: username:password@tcp(host:port)/database?charset=utf8mb4&parseTime=true&loc=Asia%2FShanghai

# PostgreSQL配置
PG:
  DataSource: postgresql://username:password@host:port/database

# JWT认证配置
Auth:
  AccessSecret: your_jwt_secret  # JWT签名密钥
  AccessExpire: 604800           # 过期时间(秒)

# 七牛云存储配置
Qiniu:
  AK: your_access_key     # 七牛AccessKey
  SK: your_secret_key     # 七牛SecretKey

# 短信服务配置
Unisms:
  SK: your_sms_secret_key  # 短信服务密钥

# IP检查配置
IPCheck:
  Path4: etc/cz88_public_v4.czdb  # IPv4数据库路径
  Path6: etc/cz88_public_v6.czdb  # IPv6数据库路径
  KEY: your_ipcheck_key           # 解密密钥

# NATS消息队列配置
NATS:
  ADDR: host:port  # NATS服务器地址

# 注意:实际配置时请替换示例中的占位符,并确保敏感信息的安全性