config.php 3.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. <?php
  2. /**
  3. * 配置
  4. *
  5. * @author mybsdc <[email protected]>
  6. * @date 2019/3/2
  7. * @time 11:39
  8. */
  9. return [
  10. 'message' => [
  11. /**
  12. * 邮箱配置
  13. */
  14. 'mail' => [
  15. /**
  16. * 目前机器人邮箱账户支持谷歌邮箱、QQ邮箱、163邮箱以及Outlook邮箱,程序会自动判断填入的邮箱类型并使用合适的配置。也可以自定义邮箱配置。
  17. * 注意,QQ邮箱与163邮箱均使用账户加授权码的方式登录,谷歌邮箱使用账户加密码的方式登录,请知悉。
  18. */
  19. 'to' => env('TO'), // 用于接收通知的邮箱
  20. 'recipient_name' => '主人', // 收件人名字
  21. 'username' => env('MAIL_USERNAME'), // 机器人邮箱账户
  22. 'password' => env('MAIL_PASSWORD'), // 机器人邮箱密码或授权码
  23. 'enable' => (int)env('MAIL_ENABLE'), // 是否启用,默认启用
  24. // 'reply_to' => '[email protected]', // 接收回复的邮箱
  25. // 'reply_to_name' => '作者', // 接收回复的人名
  26. 'host' => env('MAIL_HOST'), // 邮件 SMTP 服务器
  27. 'port' => env('MAIL_PORT'), // 邮件 SMTP 端口
  28. 'encryption' => env('MAIL_ENCRYPTION'), // 邮件加密方式
  29. 'class' => \Luolongfei\Libs\MessageServices\Mail::class,
  30. 'name' => '邮件',
  31. ],
  32. /**
  33. * Telegram Bot
  34. */
  35. 'telegram' => [
  36. 'chat_id' => env('TELEGRAM_CHAT_ID'), // 你的chat_id,通过发送“/start”给@userinfobot可以获取自己的id
  37. 'token' => env('TELEGRAM_BOT_TOKEN'), // Telegram Bot 的 token
  38. 'enable' => (int)env('TELEGRAM_BOT_ENABLE'), // 是否启用,默认不启用
  39. 'class' => \Luolongfei\Libs\MessageServices\TelegramBot::class,
  40. 'name' => 'Telegram Bot',
  41. 'proxy' => env('TELEGRAM_PROXY'),
  42. ],
  43. /**
  44. * 企业微信
  45. */
  46. 'wechat' => [
  47. 'corp_id' => env('WECHAT_CORP_ID'), // 企业 ID
  48. 'corp_secret' => env('WECHAT_CORP_SECRET'), // 企业微信应用的凭证密钥
  49. 'agent_id' => (int)env('WECHAT_AGENT_ID'), // 企业微信应用 ID
  50. 'enable' => (int)env('WECHAT_ENABLE'), // 是否启用,默认不启用
  51. 'class' => \Luolongfei\Libs\MessageServices\WeChat::class,
  52. 'name' => '企业微信',
  53. ],
  54. /**
  55. * Server 酱
  56. */
  57. 'sct' => [
  58. 'sct_send_key' => env('SCT_SEND_KEY'), // SendKey
  59. 'enable' => (int)env('SCT_ENABLE'), // 是否启用,默认不启用
  60. 'class' => \Luolongfei\Libs\MessageServices\ServerChan::class,
  61. 'name' => 'Server 酱',
  62. ],
  63. ],
  64. 'locale' => 'zh', // 指定语言包,位于resources/lang/目录下
  65. 'notice_freq' => (int)env('NOTICE_FREQ', 1), // 通知频率 0:仅当有续期操作的时候 1:每次执行
  66. 'verify_ssl' => (bool)env('VERIFY_SSL'), // 请求时验证 SSL 证书行为,默认不验证,防止服务器证书过期或证书颁布者信息不全导致无法发出请求
  67. 'debug' => (bool)env('DEBUG'),
  68. ];