config-v1.php.j2 1.3 KB

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