config.sample.php 1.1 KB

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