Commit b3e1462c by 杨昕

修改session

parent a3d6534b
Pipeline #10119 passed with stages
in 41 seconds
......@@ -85,11 +85,11 @@ return [
'mongodb' => [
'driver' => 'mongodb',
'host' => env('mg_host'),
'port' => env('mg_port'),
'host' => env('mg_host')??'mongo.eoffcn.com',
'port' => env('mg_port')??'28017',
'database' => 'video_media',
'username' => env('mg_username'),
'password' => env("mg_password"),
'username' => env('mg_username')??'root',
'password' => env("mg_password")??'FHHTH98AWAPoyweEasdfadfaaf',
'options' => [
'database' => 'admin', // sets the authentication database required by mongo 3
]
......@@ -126,10 +126,24 @@ return [
'client' => 'predis',
'default' => [
'host' => env('REDIS_HOST', '127.0.0.1'),
'password' => env('REDIS_PASSWORD', null),
'port' => env('REDIS_PORT', 6379),
'database' => env('REDIS_DB', 0),
// 'host' => env('rd_host', 'offcn-redis-svc'),
// 'password' => env('REDIS_PASSWORD', 'test.eoffcn.com'),
// 'port' => env('REDIS_PORT', 6379),
// 'database' => env('REDIS_DB', 2),
'host' => 'offcn-redis-svc',
'password' => 'test.eoffcn.com',
'port' => 6379,
'database' => 1,
],
'session' => [
'host' => 'offcn-redis-svc',
'password' => 'test.eoffcn.com',
'port' => 6379,
'database' => 2,
],
'cache' => [
......
......@@ -18,7 +18,8 @@ return [
|
*/
'driver' => env('SESSION_DRIVER', 'file'),
// 'driver' => env('SESSION_DRIVER', 'file'),
'driver' => 'redis',
/*
|--------------------------------------------------------------------------
......@@ -31,7 +32,8 @@ return [
|
*/
'lifetime' => env('SESSION_LIFETIME', 120),
// 'lifetime' => env('SESSION_LIFETIME', 120),
'lifetime' => '30',
'expire_on_close' => false,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment