diff options
author | Sheogorath | 2019-05-25 21:17:28 +0200 |
---|---|---|
committer | GitHub | 2019-05-25 21:17:28 +0200 |
commit | 678d1396916523effd393791238879c0cac15e05 (patch) | |
tree | 536e541ee0bde9ebc2d356afb8728bf8df76f980 /docs | |
parent | 816ed4ebc7e0265b353f80285fe9601b2231dd90 (diff) | |
parent | 6c62efae2ad2dac6f4c58bd84726cfb36ea9a84b (diff) |
Merge pull request #6 from SISheogorath/feautre/notTooBusy
Add config for toobusy middleware
Diffstat (limited to 'docs')
-rw-r--r-- | docs/configuration-config-file.md | 1 | ||||
-rw-r--r-- | docs/configuration-env-vars.md | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/docs/configuration-config-file.md b/docs/configuration-config-file.md index cbc6534d..b233cebe 100644 --- a/docs/configuration-config-file.md +++ b/docs/configuration-config-file.md @@ -32,6 +32,7 @@ to `config.json` before filling in your own details. | `imageUploadType` | `imgur`, `s3`, `minio`, `azure`, `lutim` or `filesystem`(default) | Where to upload images. For S3, see our Image Upload Guides for [S3](guides/s3-image-upload.md) or [Minio](guides/minio-image-upload.md)| | `sourceURL` | `https://github.com/codimd/server/tree/<current commit>` | Provides the link to the source code of CodiMD on the entry page (Please, make sure you change this when you run a modified version) | | `staticCacheTime` | `1 * 24 * 60 * 60 * 1000` | static file cache time | +| `tooBusyLag` | `70` | CPU time for one eventloop tick until node throttles connections. (milliseconds) | | `heartbeatInterval` | `5000` | socket.io heartbeat interval | | `heartbeatTimeout` | `10000` | socket.io heartbeat timeout | | `documentMaxLength` | `100000` | note max length | diff --git a/docs/configuration-env-vars.md b/docs/configuration-env-vars.md index ba635cde..bc0eac99 100644 --- a/docs/configuration-env-vars.md +++ b/docs/configuration-env-vars.md @@ -35,6 +35,7 @@ defaultNotePath can't be set from env-vars | `CMD_FORBIDDEN_NOTE_IDS` | `'robots.txt'` | disallow creation of notes, even if `CMD_ALLOW_FREEURL` is `true` | | `CMD_IMAGE_UPLOAD_TYPE` | `imgur`, `s3`, `minio`, `lutim` or `filesystem` | Where to upload images. For S3, see our Image Upload Guides for [S3](guides/s3-image-upload.md) or [Minio](guides/minio-image-upload.md), also there's a whole section on their respective env vars below. | | `CMD_SOURCE_URL` | `https://github.com/codimd/server/tree/<current commit>` | Provides the link to the source code of CodiMD on the entry page (Please, make sure you change this when you run a modified version) | +| `CMD_TOOBUSY_LAG` | `70` | CPU time for one eventloop tick until node throttles connections. (milliseconds) | ## CodiMD Location |