|
|
@@ -9,18 +9,18 @@ From bottom up:
|
|
|
|
|
|
1. Immutable base: `emqx.conf` + `EMQX_` prefixed environment variables.<br/>
|
|
|
Changes in this layer require a full node restart to take effect.
|
|
|
-1. Cluster overrides: `$EMQX_NODE__DATA_DIR/configs/cluster-override.conf`
|
|
|
+2. Cluster overrides: `$EMQX_NODE__DATA_DIR/configs/cluster.hocon`
|
|
|
|
|
|
When environment variable `$EMQX_NODE__DATA_DIR` is not set, config `node.data_dir`
|
|
|
is used.
|
|
|
|
|
|
-The `cluster-override.conf` file is overwritten at runtime when changes
|
|
|
+The `cluster.hocon` file is overwritten at runtime when changes
|
|
|
are made from dashboard UI, management HTTP API, or CLI. When clustered,
|
|
|
after EMQX restarts, it copies the file from the node which has the greatest `uptime`.
|
|
|
|
|
|
:::tip Tip
|
|
|
Some of the configs (such as `node.name`) are boot-only configs and not overridable.
|
|
|
-Config values from `*-override.conf` are **not** mapped to boot configs for
|
|
|
+Config values from `cluster.hocon` are **not** mapped to boot configs for
|
|
|
the config fields attributed with `mapping: path.to.boot.config.key`
|
|
|
:::
|
|
|
|
|
|
@@ -148,7 +148,7 @@ export EMQX_LISTENERS__SSL__L1__AUTHENTICATION__SSL__CIPHERS='["TLS_AES_256_GCM_
|
|
|
However this also means a string value should be quoted if it happens to contain special
|
|
|
characters such as `=` and `:`.
|
|
|
|
|
|
-For example, a string value `"localhost:1883"` would be
|
|
|
+For example, a string value `"localhost:1883"` would be
|
|
|
parsed into object (struct): `{"localhost": 1883}`.
|
|
|
|
|
|
To keep it as a string, one should quote the value like below:
|
|
|
@@ -226,7 +226,7 @@ Arrays in EMQX config have two different representations
|
|
|
Dot-separated paths with number in it are parsed to indexed-maps
|
|
|
e.g. `authentication.1={...}` is parsed as `authentication={"1": {...}}`
|
|
|
|
|
|
-This feature makes it easy to override array elment values. For example:
|
|
|
+This feature makes it easy to override array element values. For example:
|
|
|
|
|
|
```
|
|
|
authentication=[{enable=true, backend="built_in_database", mechanism="password_based"}]
|
|
|
@@ -322,4 +322,3 @@ ciphers =
|
|
|
"PSK-AES128-CBC-SHA"
|
|
|
]
|
|
|
```
|
|
|
-
|