Files
iotlcm/sms/config.example.yaml

26 lines
1.2 KiB
YAML
Raw Permalink 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.
# iotlcm-sms 默认供应商配置示例。
#
# 加载顺序:本文件提供默认值 → SMS_* 环境变量覆盖 → 调用方请求中显式提供的字段优先。
# 真实凭证不要提交到 Git:生产/预演只在服务器上放置 config.yaml,
# 并通过只读挂载注入容器,例如:
# -v /data/secrets/iotlcm-sms/config.yaml:/app/config/config.yaml:ro
#
# 可用环境变量覆盖:SMS_SERVICE_TYPE、SMS_REGION_ID、SMS_ACCESS_KEY_ID、
# SMS_ACCESS_KEY_SECRET、SMS_SDK_APP_ID、SMS_SIGN_NAME、SMS_TEMPLATE_ID。
# 也可用 SMS_CONFIG_FILE 指定其他配置文件路径。
serviceType: "1" # 1=阿里云,2=腾讯云
regionId: cn-hangzhou
accessKeyId: ""
accessKeySecret: ""
signName: "示例企业"
# 模板 ID 由调用方按业务场景传入(通常来自框架系统参数),此处留空即可。
# templateId: ""
# 仅腾讯云需要:
# sdkAppId: ""
# 场景模板配置库(可选,表 t_sms_template_config):按 scene 回填模板/签名,改库即生效。
# DSN 留空或省略本节 = 关闭该能力;真实 DSN 只放服务器 config.yaml,不要提交 Git。
# sceneDbDsn: "user:pass@tcp(127.0.0.1:3306)/db_iotlcm?charset=utf8mb4&parseTime=true&loc=Local"
# sceneDbCacheTtl: 60s