Skip to content

Commit

Permalink
feat 删除session相关配置
Browse files Browse the repository at this point in the history
  • Loading branch information
tumobi committed Oct 1, 2017
1 parent 446b4ce commit 095570d
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 24 deletions.
2 changes: 0 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@
"think-logger3": "^1.0.0",
"think-model": "^1.0.0",
"think-model-mysql": "^1.0.0",
"think-session": "^1.0.0",
"think-session-file": "^1.0.5",
"thinkjs": "^3.0.0"
},
"devDependencies": {
Expand Down
20 changes: 0 additions & 20 deletions src/common/config/adapter.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
const fileCache = require('think-cache-file');
const fileSession = require('think-session-file');
const mysql = require('think-model-mysql');
const {Console, File, DateFile} = require('think-logger3');
const path = require('path');
Expand Down Expand Up @@ -46,25 +45,6 @@ exports.model = {
}
};

/**
* session adapter config
* @type {Object}
*/
exports.session = {
type: 'file',
common: {
cookie: {
name: 'thinkjs'
// keys: ['werwer', 'werwer'],
// signed: true
}
},
file: {
handle: fileSession,
sessionPath: path.join(think.ROOT_PATH, 'runtime/session')
}
};

/**
* logger adapter config
* @type {Object}
Expand Down
2 changes: 0 additions & 2 deletions src/common/config/extend.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
const model = require('think-model');
const cache = require('think-cache');
const session = require('think-session');

module.exports = [
model(think.app),
cache,
session
];

0 comments on commit 095570d

Please sign in to comment.