Backend
配置文件索引
这里列出关于@celljs/web等后端包的相关配置属性。
cell.session
会话配置,结构如下:
| Key | Value | Description |
|---|---|---|
| autoCommit | true | |
| maxAge | 86400000 | |
| sessionIdKey | cell:sessionId | |
| sessionKey | cell:session |
cell.server
服务配置,结构如下:
| Key | Value | Description |
|---|---|---|
| path | / | |
| port | 3000 | |
| endpoint | http://localhost:${cell.server.port} |
cell.trace
追踪 id,结构如下:
| Key | Value | Description |
|---|---|---|
| requestField | X-Cell.js-Trace-ID | |
| responseField | X-Cell.js-Trace-ID |
cell.web
配置路由验证等,结构如下:
| Key | Value | Description |
|---|---|---|
| route.cacheSize | 500 | |
| validationPipeOptions | false | |
| - detailedOutputDisabled | false | |
| - transformEnabled | true |
cell.client.config
结构如下:
| Key | Value | Description |
|---|---|---|
| withCredentials | true | |
| headers | true | |
| - X-Requested-With | XMLHttpRequest |
cell.cookies
cookies 配置,结构如下:
| Key | Value | Description |
|---|---|---|
| keys | - abcdef |
cell.backend
后端配置,结构如下:
| Key | Value | Description |
|---|---|---|
| devEntry | lib/node/application/dev-application-entry |