config.sample.php 917 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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. Redis 设置,
  31. 使用集群
  32. */
  33. define("Redis",[
  34. "hosts" => ["127.0.0.1:6376", "127.0.0.1:6377", "127.0.0.1:6378"],
  35. "password" => "",
  36. "db" => 0,
  37. "prefix"=>"aaa://"
  38. ]);
  39. ?>