更新session存储器配置

v1
宇天 2020-10-06 10:56:30 +08:00
parent e6af5e6b1f
commit 88c599b996
3 changed files with 6 additions and 5 deletions

View File

@ -11,7 +11,6 @@ export default {
db: {}, db: {},
session: { session: {
enabled: false, enabled: false,
type: 'native', // native 或 redis
ttl: 3600 * 24 * 7, ttl: 3600 * 24 * 7,
domain: '', // NODESSID域, 默认等于domain domain: '', // NODESSID域, 默认等于domain
level: 0, // 校验级别, 0: 不校验客户端, 2: ua, 4: ip, 6: ua + ip level: 0, // 校验级别, 0: 不校验客户端, 2: ua, 4: ip, 6: ua + ip

View File

@ -1,12 +1,12 @@
{ {
"name": "@gm5/core", "name": "@gm5/core",
"version": "1.0.0", "version": "1.0.1",
"type": "module", "type": "module",
"description": "Five.js, 一个轻量级的nodejs mvc框架 旨在简单易用, 5分钟即可上手", "description": "Five.js, 一个轻量级的nodejs mvc框架 旨在简单易用, 5分钟即可上手",
"author": "yutent <yutent.io@gmail.com>", "author": "yutent <yutent.io@gmail.com>",
"main": "index.js", "main": "index.js",
"dependencies": { "dependencies": {
"@gm5/session": "^1.0.0", "@gm5/session": "^1.1.0",
"@gm5/request": "^1.2.1", "@gm5/request": "^1.2.1",
"@gm5/response": "^1.3.1", "@gm5/response": "^1.3.1",
"@gm5/controller": "^1.0.0", "@gm5/controller": "^1.0.0",
@ -21,7 +21,9 @@
"type": "git", "type": "git",
"url": "https://github.com/bytedo/gmf.core.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": { "engines": {
"node": ">=10.0.0" "node": ">=10.0.0"
}, },