From 208070d2e776c437154e6ead552364b3956adf1c Mon Sep 17 00:00:00 2001 From: Dylan Dervaux Date: Fri, 1 Feb 2019 12:33:27 +0100 Subject: Add lutim support Signed-off-by: Dylan Dervaux --- docs/configuration-config-file.md | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'docs/configuration-config-file.md') diff --git a/docs/configuration-config-file.md b/docs/configuration-config-file.md index ca027941..cbc6534d 100644 --- a/docs/configuration-config-file.md +++ b/docs/configuration-config-file.md @@ -1,7 +1,7 @@ Configuration Using Config file === -You can choose to configure CodiMD with either a config file or with +You can choose to configure CodiMD with either a config file or with [environment variables](configuration-env-vars.md). The config file is processed in [`lib/config/index.js`](../lib/config/index.js) - so this is the first place to look if anything is missing not obvious from this document. The @@ -29,7 +29,7 @@ to `config.json` before filling in your own details. | `dbURL` | `mysql://localhost:3306/database` | set the db URL; if set, then db config (below) won't be applied | | `forbiddenNoteIDs` | `['robots.txt']` | disallow creation of notes, even if `allowFreeUrl` is `true` | | `loglevel` | `info` | Defines what kind of logs are provided to stdout. | -| `imageUploadType` | `imgur`, `s3`, `minio`, `azure` 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)| +| `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/` | 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 | | `heartbeatInterval` | `5000` | socket.io heartbeat interval | @@ -144,4 +144,10 @@ Most of these have never been documented for the config.json, feel free to expan | --------- | ------ | ----------- | | `minio` | `{ "accessKey": "YOUR_MINIO_ACCESS_KEY", "secretKey": "YOUR_MINIO_SECRET_KEY", "endpoint": "YOUR_MINIO_HOST", port: 9000, secure: true }` | When `imageUploadType` is set to `minio`, you need to set this key. Also check out our [Minio Image Upload Guide](guides/minio-image-upload.md) | +### Lutim + +| variables | example values | description | +| --------- | ------ | ----------- | +|`lutim`| `{"url": "YOUR_LUTIM_URL"}`| When `imageUploadType` is set to `lutim`, you can setup the lutim url| + 1: relative paths are based on CodiMD's base directory -- cgit v1.2.3