Skip to content

Commit

Permalink
fix(core): session warn
Browse files Browse the repository at this point in the history
  • Loading branch information
Dmytro Panontko committed Mar 4, 2019
1 parent 9640d15 commit 8de186b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/bp/core/server.ts
Expand Up @@ -142,7 +142,7 @@ export default class HTTPServer {

this.app.use(monitoringMiddleware)

if (config.session.enabled) {
if (config.session && config.session.enabled) {
this.app.use(
session({
secret: process.APP_SECRET,
Expand Down
11 changes: 11 additions & 0 deletions src/bp/vanilla/botpress.config.schema.json
Expand Up @@ -29,6 +29,17 @@
"type": "string"
}
}
},
"session": {
"type": "object",
"properties": {
"enabled": {
"type": "boolean"
},
"maxAge": {
"type": "string"
}
}
}
},
"required": ["backlog", "bodyLimit", "cors", "host", "port"]
Expand Down

0 comments on commit 8de186b

Please sign in to comment.