config.sample.php 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. <?php
  2. #域名设置
  3. define("WWW_DOMAIN_PROTOCOL","https");
  4. define("WWW_DOMAIN_NAME","www.wikipali.org");
  5. define("RPC_DOMAIN_NAME","rpc.wikipali.org");
  6. /*
  7. 电子邮件设置
  8. PHPMailer
  9. */
  10. define("Email", [
  11. "Host"=>"smtp.gmail.com",//Set the SMTP server to send through
  12. "SMTPAuth"=>true,//Enable SMTP authentication
  13. "Username"=>'your@gmail.com',//SMTP username
  14. "Password"=>'your_password',//SMTP password
  15. "Port"=>465,//TCP port to connect to 465; use 587 if you have set `SMTPSecure = PHPMailer::ENCRYPTION_STARTTLS`
  16. "From"=>"your@gmail.com",
  17. "Sender"=>"sender"
  18. ]);
  19. /*
  20. 数据库设置
  21. */
  22. define("Database",[
  23. "type"=>"pgsql",
  24. "server"=>"localhost",
  25. "port"=>5432,
  26. "name"=>"mint",
  27. "sslmode" => "disable",
  28. "user" => "postgres",
  29. "password" => "123456"
  30. ]);
  31. /*
  32. Redis 设置,
  33. */
  34. define("Redis",[
  35. "host" => "127.0.0.1",
  36. "port" => 6379,
  37. "password" => "",
  38. "prefix"=>"aaa://"
  39. ]);
  40. # 雪花id
  41. define("SnowFlake",[
  42. "DatacenterId"=>1,
  43. "WorkerId"=>1
  44. ]);
  45. #目录设置,不能更改
  46. require_once __DIR__."/config.dir.php";
  47. /*
  48. 数据表
  49. */
  50. #表设置,此行不能更改
  51. require_once __DIR__."/config.table.php";
  52. ?>