2
0

config.sample.php 1.4 KB

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