topfans/backend/deploy/envs/gateway.env
2026-04-07 22:29:48 +08:00

18 lines
650 B
Bash
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# ==================== Gateway 私有配置 ====================
# 多机部署时将此文件放到 gateway 服务器的 /etc/topfans/gateway.env
# Gin 运行模式: debug, release
GIN_MODE=release
# API 网关监听端口
SERVER_PORT=8080
# JWT 密钥(生产环境务必修改为随机强密码)
JWT_SECRET=your_secure_jwt_secret_here
# 下游服务地址多机部署时改为对应服务器内网IP
DUBBO_USER_SERVICE_URL=tri://localhost:20000
DUBBO_GALLERY_SERVICE_URL=tri://localhost:20001
DUBBO_SOCIAL_SERVICE_URL=tri://localhost:20002
DUBBO_ASSET_SERVICE_URL=tri://localhost:20003
DUBBO_ACTIVITY_SERVICE_URL=tri://localhost:20004