Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
media-resource
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
杨昕
media-resource
Commits
b3e1462c
Commit
b3e1462c
authored
Jul 27, 2020
by
杨昕
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改session
parent
a3d6534b
Pipeline
#10119
passed with stages
in 41 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
10 deletions
+26
-10
database.php
config/database.php
+22
-8
session.php
config/session.php
+4
-2
No files found.
config/database.php
View file @
b3e1462c
...
...
@@ -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'
=>
[
...
...
config/session.php
View file @
b3e1462c
...
...
@@ -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
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment