rwadurian/backend/services/leaderboard-service/.env.example

32 lines
754 B
Plaintext

# 应用配置
NODE_ENV=development
PORT=3007
APP_NAME=leaderboard-service
# 数据库
DATABASE_URL="postgresql://postgres:postgres@localhost:5432/rwadurian_leaderboard?schema=public"
# JWT (与 identity-service 共享密钥)
JWT_SECRET=your-super-secret-jwt-key-change-in-production
JWT_ACCESS_EXPIRES_IN=2h
# Redis
REDIS_HOST=localhost
REDIS_PORT=6379
REDIS_PASSWORD=
# Kafka
KAFKA_BROKERS=localhost:9092
KAFKA_GROUP_ID=leaderboard-service-group
KAFKA_CLIENT_ID=leaderboard-service
# 外部服务
IDENTITY_SERVICE_URL=http://localhost:3001
REFERRAL_SERVICE_URL=http://localhost:3004
# 榜单刷新间隔(毫秒)
LEADERBOARD_REFRESH_INTERVAL=300000
# 榜单缓存过期时间(秒)
LEADERBOARD_CACHE_TTL=300