config-v1.php.j2 1.3 KB

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