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
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -170,7 +170,9 @@ There are some config settings you need to change in the files below.
170
170
|`DEBUG`|`true` or `false`| set debug mode; show more logs |
171
171
|`CMD_DOMAIN`|`codimd.org`| domain name |
172
172
|`CMD_URL_PATH`|`codimd`| sub URL path, like `www.example.com/<URL_PATH>`|
173
+
|`CMD_HOST`|`localhost`| host to listen on |
173
174
|`CMD_PORT`|`80`| web app port |
175
+
|`CMD_PATH`|`/var/run/codimd.sock`| path to UNIX domain socket to listen on (if specified, `CMD_HOST` and `CMD_PORT` are ignored) |
174
176
|`CMD_ALLOW_ORIGIN`|`localhost, codimd.org`| domain name whitelist (use comma to separate) |
175
177
|`CMD_PROTOCOL_USESSL`|`true` or `false`| set to use SSL protocol for resources path (only applied when domain is set) |
176
178
|`CMD_URL_ADDPORT`|`true` or `false`| set to add port on callback URL (ports `80` or `443` won't be applied) (only applied when domain is set) |
@@ -252,7 +254,9 @@ There are some config settings you need to change in the files below.
252
254
|`debug`|`true` or `false`| set debug mode, show more logs |
253
255
|`domain`|`localhost`| domain name |
254
256
|`urlPath`|`codimd`| sub URL path, like `www.example.com/<urlpath>`|
257
+
|`host`|`localhost`| host to listen on |
255
258
|`port`|`80`| web app port |
259
+
|`path`|`/var/run/codimd.sock`| path to UNIX domain socket to listen on (if specified, `host` and `port` are ignored) |
256
260
|`allowOrigin`|`['localhost']`| domain name whitelist |
257
261
|`useSSL`|`true` or `false`| set to use SSL server (if `true`, will auto turn on `protocolUseSSL`) |
258
262
|`hsts`|`{"enable": true, "maxAgeSeconds": 31536000, "includeSubdomains": true, "preload": true}`|[HSTS](https://en.wikipedia.org/wiki/HTTP_Strict_Transport_Security) options to use with HTTPS (default is the example value, max age is a year) |
0 commit comments