Browse Source

wes 多宝福袋

APPLE 3 years ago
parent
commit
7fd4893767
3 changed files with 16 additions and 41 deletions
  1. 6 15
      config/cache.php
  2. 6 22
      config/database.php
  3. 4 4
      config/queue.php

+ 6 - 15
config/cache.php

@@ -31,21 +31,12 @@ return [
             // 驱动方式
             'type' => 'redis',
             // 服务器地址
-            // 本地
-            //'host' => '127.0.0.1',
-            //'password' => '',
-            'timeout' => 7200,
-            'expire'=>0,
-
-//            'host' => '127.0.0.1',
-            'host' => '47.112.222.163',
-//            'password' => null,
-            'password' => 'derkj&6688',
-            'port'=> '6379',
-            'select'=> 8,
-//            测试
-//            'host' => '110.191.166.185',
-//            'password' => 'whl123'
+            'expire'=> 30*24*3600,
+            'host' => env('cache.host','127.0.0.1'),
+            'password' => env('cache.password',''),
+            'port'=> env('cache.port','6379'),
+            'select'=> env('cache.select',0),
+            'timeout'=> env('cache.timeout',7200),
         ],
     ],
 ];

+ 6 - 22
config/database.php

@@ -22,34 +22,18 @@ return [
             // 数据库类型
             'type'              => Env::get('database.type', 'mysql'),
 
-            //  local
             'hostname'          => '47.112.222.163',
-//            'hostname'          => 'localhost',
             'database'          => 'nn2023021801_1',
-//            'database'          => 'mlh_db_temp',
             'username'          => 'nn2023021801_1',
             'password'          => 'tYeBpYBZh4BibxeJ',
             'hostport'          =>  '3306',
 
-
-//            //  test
-//            'hostname'          => '114.55.89.63',
-//            'database'          => 'db_db',
-//            'username'          => 'db_db',
-//            'password'          => 'x7BBA6tYxjmbR2YC',
-//            'hostport'          =>  '33067',
-
-//            //  Online
-//            'hostname'          =>'110.42.2.96',
-//            'database'          => 'db_db',
-//            'username'          => 'db_db',
-//            'password'          => 'bZzTRxrF5NRNAjxp',
-//            'hostport'          =>  '33067',
-
-
-
-
-
+            // 正式
+//          'hostname'          => '127.0.0.1',
+//          'database'          => 'db_db',
+//          'username'          => 'db_db',
+//          'password'          => '',
+//          'hostport'          =>  '33067',
 
             // 数据库连接参数
             'params'            => [],

+ 4 - 4
config/queue.php

@@ -25,10 +25,10 @@ return [
             'type'       => 'redis',
             "expire" => null,//任务过期时间默认为秒,禁用为null
             'queue'      => env('queue.queue'),
-            'host'       => '127.0.0.1',
-            'port'       => 6379,
-            'password'   => '',
-            'select'     => env('queue.select'),
+            'host'       => env('cache.host','127.0.0.1'),
+            'port'       => env('cache.port','6379'),
+            'password'   => env('cache.password',''),
+            'select'     => env('cache.select',0),
             'timeout'    => env('queue.timeout'),
             'persistent' => false,
         ],