EMQ X configuration file is in HOCON format. HOCON, or Human-Optimized Config Object Notation is a format for human-readable data, and a superset of JSON.
In config file the values can be notated as JSON like ojbects, such as
node {
#!/bin/bash | |
docker run --rm -it -e EMQX_AUTHENTICATION='[{mechanism="password_based",backend="http", url="http://node:4000/mqtt/authn//",method="post",body={username="${username}", password:"${password}"}, enable=true}]' \ | |
emqx/emqx:5.0.14 emqx console |
#!/bin/bash | |
docker run --rm -it -p 18084:18084 -e EMQX_DASHBOARD__LISTENERS__HTTPS__ENABLE="true" \ | |
-e EMQX_DASHBOARD__LISTENERS__HTTPS__CACERTFILE='/opt/emqx/etc/certs/cacert.pem' \ | |
-e EMQX_DASHBOARD__LISTENERS__HTTPS__CERTFILE='/opt/emqx/etc/certs/cert.pem' \ | |
-e EMQX_DASHBOARD__LISTENERS__HTTPS__KEYFILE='/opt/emqx/etc/certs/key.pem' \ | |
emqx/emqx:5.0.21 emqx console |
{ | |
"components": { | |
"schemas": { | |
"broker.sysmon_os": { | |
"properties": { | |
"cpu_check_interval": { | |
"default": "60s", | |
"description": "The time interval for the periodic CPU check.", | |
"label": "The time interval for the periodic CPU check.", | |
"summary": "The time interval for the periodic CPU check.", |
%% Based on OTP 23 (generated code) | |
%% DomainComponent should have tag value 22, but got 19 (restricted-string) | |
dec_DomainComponent(Tlv) -> | |
try | |
dec_DomainComponent(Tlv, [22]) | |
catch | |
exit : {error, {asn1, {wrong_tag, {{expected, _}, {got, Got, _}}}}} -> | |
dec_DomainComponent(Tlv, [Got]) | |
end. | |
-module(bin_element). | |
-export([run/1]). | |
-define(CHUNK_SIZE, 1049). | |
run(Chunks) -> | |
BinL = [crypto:strong_rand_bytes(?CHUNK_SIZE) || _ <- lists:seq(1, Chunks)], | |
TotalBytes = ?CHUNK_SIZE * Chunks, | |
compare([hd(BinL) | BinL], TotalBytes). |
EMQ X configuration file is in HOCON format. HOCON, or Human-Optimized Config Object Notation is a format for human-readable data, and a superset of JSON.
In config file the values can be notated as JSON like ojbects, such as
node {
EMQ X configuration file is in HOCON format. HOCON, or Human-Optimized Config Object Notation is a format for human-readable data, and a superset of JSON.
In config file the values can be notated as JSON like ojbects, such as
node {