config.sample.php 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <?php
  2. // Require Composer's autoloader.
  3. require_once '../../vendor/autoload.php';
  4. /*
  5. 电子邮件设置
  6. PHPMailer
  7. */
  8. use PHPMailer\PHPMailer\PHPMailer;
  9. use PHPMailer\PHPMailer\SMTP;
  10. use PHPMailer\PHPMailer\Exception;
  11. define("Email", ["SMTPDebug"=>SMTP::DEBUG_SERVER,//Enable verbose debug output DEBUG_OFF
  12. "Host"=>"smtp.gmail.com",//Set the SMTP server to send through
  13. "SMTPAuth"=>true,//Enable SMTP authentication
  14. "Username"=>'your@gmail.com',//SMTP username
  15. "Password"=>'your_password',//SMTP password
  16. "SMTPSecure"=>PHPMailer::ENCRYPTION_SMTPS,//Enable implicit TLS encryption
  17. "Port"=>465,//TCP port to connect to 465; use 587 if you have set `SMTPSecure = PHPMailer::ENCRYPTION_STARTTLS`
  18. "From"=>"your@gmail.com",
  19. "Sender"=>"sender"
  20. ]);
  21. /*
  22. 数据库设置
  23. */
  24. define("Database",[
  25. "type"=>"pgsql",
  26. "port"=>5432,
  27. "name"=>"mint",
  28. "sslmode" => "disable",
  29. "user" => "postgres",
  30. "password" => ""
  31. ]);
  32. /*
  33. Redis 设置,
  34. 使用集群
  35. */
  36. define("Redis",[
  37. "hosts" => ["127.0.0.1:6376", "127.0.0.1:6377", "127.0.0.1:6378"],
  38. "password" => "",
  39. "db" => 0,
  40. "prefix"=>"aaa://"
  41. ]);
  42. ?>