config.sample.php 1.3 KB

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