config-v1.php.j2 1.1 KB

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