Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yoho-activity-node
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
毕凯
9 years ago
Commit
52d55f8eb49a3477ee9cd07d36efd54aec1f1fd2
1 parent
fe351397
完善配置文件
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
3 deletions
app.js
bin/www
config/config.dev.js
config/index.js
app.js
View file @
52d55f8
...
...
@@ -50,7 +50,7 @@ app.use(express.static(path.join(__dirname, 'public')));
// session 配置
app
.
use
(
session
({
name
:
'yoho-activity'
,
name
:
config
.
sessionName
,
resave
:
true
,
saveUninitialized
:
true
,
httpOnly
:
true
,
...
...
bin/www
View file @
52d55f8
...
...
@@ -12,7 +12,7 @@ var http = require('http');
* Get port from environment and store in Express.
*/
var
port
=
normalizePort
(
process
.
env
.
PORT
||
'
3000
'
);
var
port
=
normalizePort
(
process
.
env
.
PORT
||
'
9646
'
);
app
.
set
(
'port'
,
port
);
/**
...
...
config/config.dev.js
View file @
52d55f8
module
.
exports
=
{
assetsUrl
:
'//localhost:
3000
'
,
assetsUrl
:
'//localhost:
9646
'
,
sessionRedis
:
{
host
:
'127.0.0.1'
,
port
:
6379
,
prefix
:
'activity-session-dev:'
,
ttl
:
3600
// session 默认有效期
},
sessionName
:
'yoho-activity-dev'
,
sessionSecret
:
'devsession'
};
...
...
config/index.js
View file @
52d55f8
...
...
@@ -7,5 +7,6 @@ module.exports = {
prefix
:
'activity-session:'
,
ttl
:
3600
// session 默认有效期
},
sessionName
:
'yoho-activity'
,
sessionSecret
:
'0c565c3085bcf9c7ecdb84f57dfc74fb'
};
...
...
Please
register
or
login
to post a comment