|
@@ -45,7 +45,9 @@ $config['gip'] = 0;
|
|
|
$config['dbdriver'] = 'mysqli';
|
|
|
$config['tablepre'] = 'lrlz_';
|
|
|
|
|
|
-define('SSH_TUNEL_PROD',true);
|
|
|
+//define('SSH_TUNEL_PROD',true);
|
|
|
+//define('SSH_TUNEL_PROD','xyz');
|
|
|
+define('SSH_TUNEL_PROD','lingzh');
|
|
|
|
|
|
if(SSH_TUNEL_PROD === false) {
|
|
|
$config['db'][1]['dbhost'] = MASTER_DBHOST;
|
|
@@ -62,7 +64,7 @@ if(SSH_TUNEL_PROD === false) {
|
|
|
$config['db']['slave'][0]['dbname'] = 'xyzshop';
|
|
|
$config['db']['slave'][0]['dbcharset'] = 'UTF-8';
|
|
|
}
|
|
|
-else {
|
|
|
+elseif(SSH_TUNEL_PROD === 'xyz') {
|
|
|
//调试是先执行这行命令
|
|
|
//shell_exec("ssh -NCPf root@121.89.223.81 -L 3307:127.0.0.1:3306");
|
|
|
$config['db'][1]['dbhost'] = MASTER_DBHOST;
|
|
@@ -79,6 +81,23 @@ else {
|
|
|
$config['db']['slave'][0]['dbname'] = 'xyzshop';
|
|
|
$config['db']['slave'][0]['dbcharset'] = 'UTF-8';
|
|
|
}
|
|
|
+elseif(SSH_TUNEL_PROD === 'lingzh') {
|
|
|
+ //调试是先执行这行命令
|
|
|
+ //shell_exec("ssh -NCPf root@121.89.212.167 -L 3307:127.0.0.1:3306");
|
|
|
+ $config['db'][1]['dbhost'] = MASTER_DBHOST;
|
|
|
+ $config['db'][1]['dbport'] = '3307';
|
|
|
+ $config['db'][1]['dbuser'] = 'root';
|
|
|
+ $config['db'][1]['dbpwd'] = 'Linzhuhmnbmhhah#2021';
|
|
|
+ $config['db'][1]['dbname'] = 'xyzshop';
|
|
|
+ $config['db'][1]['dbcharset'] = 'UTF-8';
|
|
|
+
|
|
|
+ $config['db']['slave'][0]['dbhost'] = SLAVE_DBHOST;
|
|
|
+ $config['db']['slave'][0]['dbport'] = '3307';
|
|
|
+ $config['db']['slave'][0]['dbuser'] = 'root';
|
|
|
+ $config['db']['slave'][0]['dbpwd'] = 'Linzhuhmnbmhhah#2021';
|
|
|
+ $config['db']['slave'][0]['dbname'] = 'xyzshop';
|
|
|
+ $config['db']['slave'][0]['dbcharset'] = 'UTF-8';
|
|
|
+}
|
|
|
|
|
|
$config['session_expire'] = 3600;
|
|
|
$config['lang_type'] = 'zh_cn';
|