Files
rui-docs/backend/config-templates/nacos/rui-auth.yaml
T
vifo 2249b3649a docs(nacos): 添加社交登录配置 (rui-auth.yaml)
- 微信登录配置 (app-id, app-secret)
- 支付宝登录配置 (app-id, private-key, public-key)
- 用 env var 占位符支持容器化部署
2026-06-07 15:52:34 +08:00

25 lines
815 B
YAML
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.
# rui-auth.yaml — 认证中心模块配置
# Data ID: rui-auth.yaml
# Group: DEFAULT_GROUP
# 服务端口:9301(认证中心,所有服务依赖)
server:
port: 9301
# 社交登录配置(微信、支付宝)
# 应用启动时由 OAuth2ServerConfig 通过 @Value 注入到 WechatApiClient / AlipayApiClient
# 留空表示对应登录方式未启用(Provider 仍会注册,但调用时会失败)
social:
wechat:
# 微信开放平台 AppID
app-id: ${WECHAT_APP_ID:}
# 微信开放平台 AppSecret
app-secret: ${WECHAT_APP_SECRET:}
alipay:
# 支付宝开放平台 AppID
app-id: ${ALIPAY_APP_ID:}
# 应用私钥(用于请求签名,RSA2
private-key: ${ALIPAY_PRIVATE_KEY:}
# 支付宝公钥(用于响应验签)
public-key: ${ALIPAY_PUBLIC_KEY:}