config.sample.php 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. <?php
  2. #目录设置,不能更改
  3. require_once __DIR__."/config.dir.php";
  4. #域名设置
  5. define("WWW_DOMAIN_PROTOCOL","https");
  6. define("WWW_DOMAIN_NAME","www.wikipali.org");
  7. define("RPC_DOMAIN_NAME","rpc.wikipali.org");
  8. /*
  9. 电子邮件设置
  10. PHPMailer
  11. */
  12. define("Email", [
  13. "Host"=>"smtp.gmail.com",//Set the SMTP server to send through
  14. "SMTPAuth"=>true,//Enable SMTP authentication
  15. "Username"=>'your@gmail.com',//SMTP username
  16. "Password"=>'your_password',//SMTP password
  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. "server"=>"localhost",
  27. "port"=>5432,
  28. "name"=>"mint",
  29. "sslmode" => "disable",
  30. "user" => "postgres",
  31. "password" => "123456"
  32. ]);
  33. /*
  34. Redis 设置,
  35. */
  36. define("Redis",[
  37. "host" => "127.0.0.1",
  38. "port" => 6379,
  39. "password" => "",
  40. "prefix"=>"aaa://"
  41. ]);
  42. # 雪花id
  43. define("SnowFlake",[
  44. "DatacenterId"=>1,
  45. "WorkerId"=>1
  46. ]);
  47. /*
  48. 数据表
  49. */
  50. #表设置,此行不能更改
  51. require_once __DIR__."/config.table.php";
  52. #表名设置,此行不能更改
  53. require_once __DIR__."/config.migrate.php";
  54. ?>