config.sample.php 1.3 KB

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