51 lines
1.6 KiB
Plaintext
51 lines
1.6 KiB
Plaintext
# ==================== Server Configuration ====================
|
||
# Gin运行模式: debug, release, test
|
||
GIN_MODE=debug
|
||
# API网关端口
|
||
SERVER_PORT=8080
|
||
|
||
# ==================== JWT Configuration ====================
|
||
# JWT密钥 - 生产环境请修改为安全的随机字符串
|
||
JWT_SECRET=topfans-secret-key-please-change-in-production
|
||
|
||
# ==================== Dubbo Service URLs ====================
|
||
# 各微服务的Dubbo连接地址(直连模式)
|
||
DUBBO_USER_SERVICE_URL=tri://127.0.0.1:20000
|
||
DUBBO_SOCIAL_SERVICE_URL=tri://127.0.0.1:20001
|
||
DUBBO_ASSET_SERVICE_URL=tri://127.0.0.1:20003
|
||
DUBBO_GALLERY_SERVICE_URL=tri://127.0.0.1:20004
|
||
DUBBO_ACTIVITY_SERVICE_URL=tri://127.0.0.1:20005
|
||
|
||
# ==================== Database Configuration ====================
|
||
# PostgreSQL数据库配置
|
||
DB_HOST=localhost
|
||
DB_PORT=5432
|
||
DB_USER=haihuizhu
|
||
DB_PASSWORD=admin
|
||
DB_NAME=top-fans
|
||
|
||
# ==================== OSS Configuration ====================
|
||
# 阿里云OSS配置
|
||
OSS_REGION=cn-shanghai
|
||
OSS_BUCKET_NAME=top-fans-test
|
||
OSS_STS_ROLE_ARN=acs:ram::1387642798143585:role/top-fans-oss-user
|
||
OSS_ACCESS_KEY_ID=your-access-key-id
|
||
OSS_ACCESS_KEY_SECRET=your-access-key-secret
|
||
OSS_AVATAR_DIR=avatar/
|
||
OSS_ASSET_DIR=asset/
|
||
OSS_TOKEN_EXPIRE_TIME=3600
|
||
|
||
# ==================== Service Ports ====================
|
||
# 各服务端口(用于flag参数)
|
||
# User Service: 20000
|
||
# Social Service: 20001
|
||
# Asset Service: 20003
|
||
# Gallery Service: 20004
|
||
# Activity Service: 20005
|
||
|
||
# ==================== Logging ====================
|
||
# 环境: development, production
|
||
ENV=development
|
||
# 日志级别: debug, info, warn, error
|
||
LOG_LEVEL=info
|