You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+12-13Lines changed: 12 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -174,6 +174,7 @@ There are some config settings you need to change in the files below.
174
174
| --------- | ------ | ----------- |
175
175
|`NODE_ENV`|`production` or `development`| set current environment (will apply corresponding settings in the `config.json`) |
176
176
|`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 |
177
178
|`CMD_DOMAIN`|`codimd.org`| domain name |
178
179
|`CMD_URL_PATH`|`codimd`| sub URL path, like `www.example.com/<URL_PATH>`|
179
180
|`CMD_HOST`|`localhost`| host to listen on |
@@ -285,19 +286,15 @@ There are some config settings you need to change in the files below.
285
286
|`defaultPermission`|`freely`, `editable`, `limited`, `locked`, `protected` or `private`| set notes default permission (only applied on signed users) |
286
287
|`dbURL`|`mysql://localhost:3306/database`| set the db URL; if set, then db config (below) won't be applied |
287
288
|`db`|`{ "dialect": "sqlite", "storage": "./db.codimd.sqlite" }`| set the db configs, [see more here](http://sequelize.readthedocs.org/en/latest/api/sequelize/)|
288
-
|`sslKeyPath`|`./cert/client.key`| SSL key path (only need when you set `useSSL`) |
289
-
|`sslCertPath`|`./cert/codimd_io.crt`| SSL cert path (only need when you set `useSSL`) |
290
-
|`sslCAPath`|`['./cert/COMODORSAAddTrustCA.crt']`| SSL ca chain (only need when you set `useSSL`) |
291
-
|`dhParamPath`|`./cert/dhparam.pem`| SSL dhparam path (only need when you set `useSSL`) |
@@ -314,6 +311,8 @@ There are some config settings you need to change in the files below.
314
311
|`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)|
315
312
|`s3bucket`|`YOUR_S3_BUCKET_NAME`| bucket name when `imageUploadType` is set to `s3` or `minio`|
316
313
314
+
<sup>1</sup>: relative paths are based on CodiMD's base directory
0 commit comments