config.sample.php 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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. /*
  33. Redis 设置,
  34. */
  35. define("Redis",[
  36. "host" => "127.0.0.1",
  37. "port" => 6379,
  38. "password" => "",
  39. "prefix"=>"aaa://"
  40. ]);
  41. # 雪花id
  42. define("SnowFlake",[
  43. "DatacenterId"=>1,
  44. "WorkerId"=>1
  45. ]);
  46. #目录设置,不能更改
  47. require_once __DIR__."/config.dir.php";
  48. /*
  49. 数据表
  50. */
  51. #表设置,此行不能更改
  52. require_once __DIR__."/config.table.php";
  53. ?>