更新session存储器配置
parent
e6af5e6b1f
commit
88c599b996
|
@ -11,7 +11,6 @@ export default {
|
|||
db: {},
|
||||
session: {
|
||||
enabled: false,
|
||||
type: 'native', // native 或 redis
|
||||
ttl: 3600 * 24 * 7,
|
||||
domain: '', // NODESSID域, 默认等于domain
|
||||
level: 0, // 校验级别, 0: 不校验客户端, 2: ua, 4: ip, 6: ua + ip
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
* @date 2020/09/18 15:16:29
|
||||
*/
|
||||
|
||||
export default function(req, res, next) {
|
||||
export default function (req, res, next) {
|
||||
var debug = this.get('debug')
|
||||
|
||||
// 1. 先判断控制器是否存在
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
{
|
||||
"name": "@gm5/core",
|
||||
"version": "1.0.0",
|
||||
"version": "1.0.1",
|
||||
"type": "module",
|
||||
"description": "Five.js, 一个轻量级的nodejs mvc框架 旨在简单易用, 5分钟即可上手",
|
||||
"author": "yutent <yutent.io@gmail.com>",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@gm5/session": "^1.0.0",
|
||||
"@gm5/session": "^1.1.0",
|
||||
"@gm5/request": "^1.2.1",
|
||||
"@gm5/response": "^1.3.1",
|
||||
"@gm5/controller": "^1.0.0",
|
||||
|
@ -21,7 +21,9 @@
|
|||
"type": "git",
|
||||
"url": "https://github.com/bytedo/gmf.core.git"
|
||||
},
|
||||
"keywords": ["five, fivejs, node-five, five.js, nodejs, mvc, koa, express"],
|
||||
"keywords": [
|
||||
"five, fivejs, node-five, five.js, nodejs, mvc, koa, express"
|
||||
],
|
||||
"engines": {
|
||||
"node": ">=10.0.0"
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue