Merge pull request #10130 from zhongwencool/env-value-string-to-binary
fix: replace env value string to binary
This commit is contained in:
commit
1228d9d5fb
|
@ -49,7 +49,6 @@
|
||||||
<<"authorization">>,
|
<<"authorization">>,
|
||||||
<<"authentication">>,
|
<<"authentication">>,
|
||||||
<<"rpc">>,
|
<<"rpc">>,
|
||||||
<<"db">>,
|
|
||||||
<<"connectors">>,
|
<<"connectors">>,
|
||||||
<<"slow_subs">>,
|
<<"slow_subs">>,
|
||||||
<<"psk_authentication">>,
|
<<"psk_authentication">>,
|
||||||
|
|
|
@ -26,18 +26,6 @@ start_link() ->
|
||||||
supervisor:start_link({local, ?MODULE}, ?MODULE, []).
|
supervisor:start_link({local, ?MODULE}, ?MODULE, []).
|
||||||
|
|
||||||
init([]) ->
|
init([]) ->
|
||||||
%% TODO: Add monitor plugins change.
|
|
||||||
Monitor = emqx_plugins_monitor,
|
|
||||||
_Children = [
|
|
||||||
#{
|
|
||||||
id => Monitor,
|
|
||||||
start => {Monitor, start_link, []},
|
|
||||||
restart => permanent,
|
|
||||||
shutdown => brutal_kill,
|
|
||||||
type => worker,
|
|
||||||
modules => [Monitor]
|
|
||||||
}
|
|
||||||
],
|
|
||||||
SupFlags =
|
SupFlags =
|
||||||
#{
|
#{
|
||||||
strategy => one_for_one,
|
strategy => one_for_one,
|
||||||
|
|
|
@ -0,0 +1,3 @@
|
||||||
|
Fix garbled config display in dashboard when the value is originally from environment variables.
|
||||||
|
For example, `env EMQX_STATSD__SERVER='127.0.0.1:8124' . /bin/emqx start` results in unreadable string (not '127.0.0.1:8124') displayed in Dashboard's Statsd settings page.
|
||||||
|
Related PR: [HOCON#234](https://github.com/emqx/hocon/pull/234).
|
|
@ -0,0 +1,3 @@
|
||||||
|
修复通过环境变量配置启动的 EMQX 节点无法通过HTTP API获取到正确的配置信息。
|
||||||
|
比如:`EMQX_STATSD__SERVER='127.0.0.1:8124' ./bin/emqx start` 后通过 Dashboard看到的 Statsd 配置信息是乱码。
|
||||||
|
相关 PR: [HOCON:234](https://github.com/emqx/hocon/pull/234).
|
Loading…
Reference in New Issue