config.sample.php 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. <?php
  2. #域名设置
  3. define(WWW_DOMAIN_NAME,"sg.wikipali.org");
  4. define(RPC_DOMAIN_NAME,"rpc.wikipali.org");
  5. /*
  6. 电子邮件设置
  7. PHPMailer
  8. */
  9. define("Email", [
  10. "Host"=>"smtp.gmail.com",//Set the SMTP server to send through
  11. "SMTPAuth"=>true,//Enable SMTP authentication
  12. "Username"=>'your@gmail.com',//SMTP username
  13. "Password"=>'your_password',//SMTP password
  14. "Port"=>465,//TCP port to connect to 465; use 587 if you have set `SMTPSecure = PHPMailer::ENCRYPTION_STARTTLS`
  15. "From"=>"your@gmail.com",
  16. "Sender"=>"sender"
  17. ]);
  18. /*
  19. 数据库设置
  20. */
  21. define("Database",[
  22. "type"=>"pgsql",
  23. "port"=>5432,
  24. "name"=>"mint",
  25. "sslmode" => "disable",
  26. "user" => "postgres",
  27. "password" => "123456"
  28. ]);
  29. define("_DB_ENGIN_", Database["type"]);
  30. define("_DB_HOST_", Database["server"]);
  31. define("_DB_PORT_", Database["port"]);
  32. define("_DB_NAME_", Database["name"]);
  33. define("_DB_USERNAME_", Database["user"]);
  34. define("_DB_PASSWORD_", Database["password"]);
  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. ?>