mirror of
https://github.com/thinkjs/thinkjs.git
synced 2026-01-18 14:26:56 +00:00
22 lines
352 B
TypeScript
22 lines
352 B
TypeScript
/// <reference path="../../../typings/thinkjs/think.d.ts" />
|
|
|
|
'use strict';
|
|
|
|
/**
|
|
* session configs
|
|
*/
|
|
export default {
|
|
name: 'thinkjs',
|
|
type: 'file',
|
|
secret: '<SECRET>',
|
|
timeout: 24 * 3600,
|
|
cookie: { // cookie options
|
|
length: 32,
|
|
httponly: true
|
|
},
|
|
adapter: {
|
|
file: {
|
|
path: think.RUNTIME_PATH + '/session',
|
|
}
|
|
}
|
|
}; |