config.sample.php 1.2 KB

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