send.conf 1.4 KB

123456789101112131415161718192021222324252627282930313233
  1. # 国际短信发送服务配置文件(sendintlmsg)
  2. # 用于 sendintlmsg/send_international_sms.py
  3. # 说明:
  4. # 1. 如果配置项为空,脚本会尝试从环境变量读取(兼容 backend/.env)
  5. # 2. 敏感信息(如密码)建议使用环境变量,避免泄露
  6. [aliyun_sms]
  7. # 阿里云国际短信服务配置
  8. # access_key_id 和 access_key_secret 如果为空,会从环境变量 ALIBABA_CLOUD_ACCESS_KEY_ID 和 ALIBABA_CLOUD_ACCESS_KEY_SECRET 读取
  9. # 从 sendmsg/send.conf 复制的默认值(如需安全请改为环境变量)
  10. access_key_id = LTAI5tQ6iFj9XMSZygRhKL4F
  11. access_key_secret = eXEfRLenQfOCLWkj307jv48rBUWNHK
  12. # Sender ID(国际短信需要使用已注册的 Sender ID,示例: Lyrria)
  13. sender_id = Lyrria
  14. # 国际短信模板(完整文本,支持 {code} 占位符)
  15. template_message = [Lyrria] Your verification code is {code}. It expires in 5 minutes. Do not share this code with anyone.
  16. # API endpoint(新加坡 ap-southeast-1)
  17. endpoint = dysmsapi.ap-southeast-1.aliyuncs.com
  18. # 短信类型(OTP/NOTIFY/MKT)
  19. sms_type = OTP
  20. [database]
  21. # MySQL 数据库配置(为空时会尝试从环境变量 MYSQL_* 读取)
  22. mysql_host = 101.201.60.170
  23. mysql_port = 13306
  24. mysql_user = root
  25. mysql_password = Lyrria@Root@123456
  26. mysql_database = Lyrria
  27. [service]
  28. # 服务配置
  29. # 轮询间隔(秒),准实时发送的检查频率
  30. poll_interval = 1.0