76 lines
2.5 KiB
Plaintext
76 lines
2.5 KiB
Plaintext
# ==================== Server Configuration ====================
|
||
# Gin运行模式: debug, release, test
|
||
GIN_MODE=release
|
||
# API网关端口
|
||
SERVER_PORT=8080
|
||
|
||
# ==================== JWT Configuration ====================
|
||
# JWT密钥 - 生产环境请修改为安全的随机字符串
|
||
JWT_SECRET=
|
||
|
||
# ==================== 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
|
||
DUBBO_TASK_SERVICE_URL=tri://127.0.0.1:20006
|
||
DUBBO_STARBOOK_SERVICE_URL=tri://127.0.0.1:20007
|
||
|
||
# ==================== Database Configuration ====================
|
||
# PostgreSQL数据库配置
|
||
DB_HOST=localhost
|
||
DB_PORT=5432
|
||
DB_USER=haihuizhu
|
||
DB_PASSWORD=admin
|
||
DB_NAME=top-fans
|
||
|
||
# ==================== Redis Configuration ====================
|
||
REDIS_HOST=127.0.0.1
|
||
REDIS_PORT=6379
|
||
REDIS_PASSWORD=
|
||
REDIS_DB=0
|
||
|
||
# ==================== OSS Configuration ====================
|
||
# 阿里云OSS配置
|
||
OSS_REGION=cn-shanghai
|
||
OSS_BUCKET_NAME=your-bucket-name
|
||
OSS_STS_ROLE_ARN=acs:ram::1234567890123456:role/your-oss-role-name
|
||
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
|
||
# ==================== MiniMax API Configuration ====================
|
||
MINIMAX_API_KEY=
|
||
MINIMAX_API_URL=https://api.minimaxi.com/v1/image_generation
|
||
|
||
# ==================== Segment (镭射卡抠图) ====================
|
||
# auto=自部署HTTP(若有)→imageseg→IVPD;imageseg=VIAPI SegmentHDBody;ivpd=旧版 IVPD SegmentImage
|
||
SEGMENT_PROVIDER=imageseg
|
||
# 自部署 rembg:http://127.0.0.1:7000/api/remove
|
||
SEGMENT_INFERENCE_URL=
|
||
|
||
# ==================== Dify AI Workflow ====================
|
||
# Dify API 地址(自部署或云服务)
|
||
DIFY_API_BASE=https://api.dify.ai/v1
|
||
# Dify App API Key(laser_card_variants_v1 工作流)
|
||
DIFY_API_KEY=
|
||
# laser-compositor 内网地址
|
||
LASER_COMPOSITOR_URL=http://127.0.0.1:7000
|