config.sample.php 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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. #数据库
  30. # 数据库基本参数 pgsql sqlite
  31. define("_DB_ENGIN_", "pgsql");
  32. define("_DB_HOST_", "localhost");
  33. define("_DB_NAME_", "mint");
  34. define("_DB_PORT_", "5432");
  35. define("_DB_USERNAME_", "postgres");
  36. define("_DB_PASSWORD_", "123456");
  37. /*
  38. Redis 设置,
  39. 使用集群
  40. */
  41. define("Redis",[
  42. "hosts" => ["127.0.0.1:6376", "127.0.0.1:6377", "127.0.0.1:6378"],
  43. "password" => "",
  44. "db" => 0,
  45. "prefix"=>"aaa://"
  46. ]);
  47. ?>