config.sample.php 1.3 KB

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