|
@@ -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');
|
|
@@ -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}
|