Skip to content

Commit 61e2401

Browse files
committed
README: add note about configurable paths
Signed-off-by: WilliButz <[email protected]>
1 parent bb80bc2 commit 61e2401

File tree

1 file changed

+12
-13
lines changed

1 file changed

+12
-13
lines changed

README.md

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,7 @@ There are some config settings you need to change in the files below.
174174
| --------- | ------ | ----------- |
175175
| `NODE_ENV` | `production` or `development` | set current environment (will apply corresponding settings in the `config.json`) |
176176
| `DEBUG` | `true` or `false` | set debug mode; show more logs |
177+
| `CMD_CONFIG_FILE` | `/path/to/config.json` | optional override for the path to CodiMD's config file |
177178
| `CMD_DOMAIN` | `codimd.org` | domain name |
178179
| `CMD_URL_PATH` | `codimd` | sub URL path, like `www.example.com/<URL_PATH>` |
179180
| `CMD_HOST` | `localhost` | host to listen on |
@@ -277,19 +278,15 @@ There are some config settings you need to change in the files below.
277278
| `defaultPermission` | `freely`, `editable`, `limited`, `locked`, `protected` or `private` | set notes default permission (only applied on signed users) |
278279
| `dbURL` | `mysql://localhost:3306/database` | set the db URL; if set, then db config (below) won't be applied |
279280
| `db` | `{ "dialect": "sqlite", "storage": "./db.codimd.sqlite" }` | set the db configs, [see more here](http://sequelize.readthedocs.org/en/latest/api/sequelize/) |
280-
| `sslKeyPath` | `./cert/client.key` | SSL key path (only need when you set `useSSL`) |
281-
| `sslCertPath` | `./cert/codimd_io.crt` | SSL cert path (only need when you set `useSSL`) |
282-
| `sslCAPath` | `['./cert/COMODORSAAddTrustCA.crt']` | SSL ca chain (only need when you set `useSSL`) |
283-
| `dhParamPath` | `./cert/dhparam.pem` | SSL dhparam path (only need when you set `useSSL`) |
284-
| `tmpPath` | `./tmp/` | temp directory path |
285-
| `defaultNotePath` | `./public/default.md` | default note file path |
286-
| `docsPath` | `./public/docs` | docs directory path |
287-
| `indexPath` | `./public/views/index.ejs` | index template file path |
288-
| `hackmdPath` | `./public/views/hackmd.ejs` | hackmd template file path |
289-
| `errorPath` | `./public/views/error.ejs` | error template file path |
290-
| `prettyPath` | `./public/views/pretty.ejs` | pretty template file path |
291-
| `slidePath` | `./public/views/slide.hbs` | slide template file path |
292-
| `uploadsPath` | `./public/uploads` | uploads directory - needs to be persistent when you use imageUploadType `filesystem` |
281+
| `sslKeyPath` | `./cert/client.key` | SSL key path<sup>1</sup> (only need when you set `useSSL`) |
282+
| `sslCertPath` | `./cert/codimd_io.crt` | SSL cert path<sup>1</sup> (only need when you set `useSSL`) |
283+
| `sslCAPath` | `['./cert/COMODORSAAddTrustCA.crt']` | SSL ca chain<sup>1</sup> (only need when you set `useSSL`) |
284+
| `dhParamPath` | `./cert/dhparam.pem` | SSL dhparam path<sup>1</sup> (only need when you set `useSSL`) |
285+
| `tmpPath` | `./tmp/` | temp directory path<sup>1</sup> |
286+
| `defaultNotePath` | `./public/default.md` | default note file path<sup>1</sup> |
287+
| `docsPath` | `./public/docs` | docs directory path<sup>1</sup> |
288+
| `viewPath` | `./public/views` | template directory path<sup>1</sup> |
289+
| `uploadsPath` | `./public/uploads` | uploads directory<sup>1</sup> - needs to be persistent when you use imageUploadType `filesystem` |
293290
| `sessionName` | `connect.sid` | cookie session name |
294291
| `sessionSecret` | `secret` | cookie session secret |
295292
| `sessionLife` | `14 * 24 * 60 * 60 * 1000` | cookie session life |
@@ -305,6 +302,8 @@ There are some config settings you need to change in the files below.
305302
| `s3` | `{ "accessKeyId": "YOUR_S3_ACCESS_KEY_ID", "secretAccessKey": "YOUR_S3_ACCESS_KEY", "region": "YOUR_S3_REGION" }` | When `imageuploadtype` be set to `s3`, you would also need to setup this key, check our [S3 Image Upload Guide](docs/guides/s3-image-upload.md) |
306303
| `s3bucket` | `YOUR_S3_BUCKET_NAME` | bucket name when `imageUploadType` is set to `s3` or `minio` |
307304

305+
<sup>1</sup>: relative paths are based on CodiMD's base directory
306+
308307
## Third-party integration API key settings
309308

310309
| service | settings location | description |

0 commit comments

Comments
 (0)