|
|
@@ -4,6 +4,7 @@ require_once __DIR__."/config.dir.php";
|
|
|
|
|
|
#域名设置
|
|
|
define("RPC_SERVER","https://rpc.wikipali.org");
|
|
|
+define("ASSETS_SERVER","https://assets-{{ app_cluster_id }}.wikipali.org");
|
|
|
/*
|
|
|
电子邮件设置
|
|
|
PHPMailer
|
|
|
@@ -11,11 +12,11 @@ PHPMailer
|
|
|
define("Email", [
|
|
|
"Host"=>"smtp.gmail.com",//Set the SMTP server to send through
|
|
|
"SMTPAuth"=>true,//Enable SMTP authentication
|
|
|
- "Username"=>'your@gmail.com',//SMTP username
|
|
|
- "Password"=>'your_password',//SMTP password
|
|
|
+ "Username"=>'{{ app_smtp_username }}',//SMTP username
|
|
|
+ "Password"=>'{{ app_smtp_password }}',//SMTP password
|
|
|
"Port"=>465,//TCP port to connect to 465; use 587 if you have set `SMTPSecure = PHPMailer::ENCRYPTION_STARTTLS`
|
|
|
- "From"=>"your@gmail.com",
|
|
|
- "Sender"=>"sender"
|
|
|
+ "From"=>"{{ app_smtp_username }}",
|
|
|
+ "Sender"=>"webmaster"
|
|
|
]);
|
|
|
|
|
|
/*
|
|
|
@@ -23,12 +24,12 @@ define("Email", [
|
|
|
*/
|
|
|
define("Database",[
|
|
|
"type"=>"pgsql",
|
|
|
- "server"=>"localhost",
|
|
|
- "port"=>5432,
|
|
|
- "name"=>"mint",
|
|
|
+ "server"=>"{{ app_postgresql_host }}",
|
|
|
+ "port"=>{{ app_postgresql_port }},
|
|
|
+ "name"=>"{{ app_postgresql_name }}",
|
|
|
"sslmode" => "disable",
|
|
|
- "user" => "postgres",
|
|
|
- "password" => "123456"
|
|
|
+ "user" => "{{ app_postgresql_user }}",
|
|
|
+ "password" => "{{ app_postgresql_password }}"
|
|
|
]);
|
|
|
|
|
|
|