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 |
@@ -277,19 +278,15 @@ There are some config settings you need to change in the files below.
277
278
|`defaultPermission`|`freely`, `editable`, `limited`, `locked`, `protected` or `private`| set notes default permission (only applied on signed users) |
278
279
|`dbURL`|`mysql://localhost:3306/database`| set the db URL; if set, then db config (below) won't be applied |
279
280
|`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`) |
@@ -305,6 +302,8 @@ There are some config settings you need to change in the files below.
305
302
|`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)|
306
303
|`s3bucket`|`YOUR_S3_BUCKET_NAME`| bucket name when `imageUploadType` is set to `s3` or `minio`|
307
304
305
+
<sup>1</sup>: relative paths are based on CodiMD's base directory
0 commit comments