Merge pull request #11702 from zmstone/0928-minor-chore
0928 minor chore
This commit is contained in:
commit
98409c9b1e
|
@ -1,6 +1,6 @@
|
||||||
%% This additional config file is used when the config 'cluster.proto_dist' in emqx.conf is set to 'inet_tls'.
|
%% This additional config file is used when the config 'cluster.proto_dist' in emqx.conf is set to 'inet_tls'.
|
||||||
%% Which means the EMQX nodes will connect to each other over TLS.
|
%% Which means the EMQX nodes will connect to each other over TLS.
|
||||||
%% For more information about inter-broker security, see: https://docs.emqx.com/en/enterprise/v5.0/deploy/cluster/security.html
|
%% For more information about inter-broker security, see: https://docs.emqx.com/en/enterprise/v5.3/deploy/cluster/security.html
|
||||||
|
|
||||||
%% For more information in technical details see: http://erlang.org/doc/apps/ssl/ssl_distribution.html
|
%% For more information in technical details see: http://erlang.org/doc/apps/ssl/ssl_distribution.html
|
||||||
|
|
||||||
|
|
|
@ -85,7 +85,7 @@ sp_saml_metadata(get, _Req) ->
|
||||||
#{enable := true, sp := SP} = _State ->
|
#{enable := true, sp := SP} = _State ->
|
||||||
SignedXml = esaml_sp:generate_metadata(SP),
|
SignedXml = esaml_sp:generate_metadata(SP),
|
||||||
Metadata = xmerl:export([SignedXml], xmerl_xml),
|
Metadata = xmerl:export([SignedXml], xmerl_xml),
|
||||||
{200, #{<<"Content-Type">> => <<"text/xml">>}, erlang:iolist_to_binary(Metadata)};
|
{200, #{<<"content-type">> => <<"text/xml">>}, erlang:iolist_to_binary(Metadata)};
|
||||||
_ ->
|
_ ->
|
||||||
{404, #{code => ?BACKEND_NOT_FOUND, message => <<"Backend not found">>}}
|
{404, #{code => ?BACKEND_NOT_FOUND, message => <<"Backend not found">>}}
|
||||||
end.
|
end.
|
||||||
|
|
2
dev
2
dev
|
@ -416,7 +416,7 @@ boot() {
|
||||||
gen_tmp_node_name() {
|
gen_tmp_node_name() {
|
||||||
local rnd
|
local rnd
|
||||||
rnd="$(od -t u -N 4 /dev/urandom | head -n1 | awk '{print $2 % 1000}')"
|
rnd="$(od -t u -N 4 /dev/urandom | head -n1 | awk '{print $2 % 1000}')"
|
||||||
echo "remsh${rnd}-$EMQX_NODE_NAME}"
|
echo "remsh${rnd}-${EMQX_NODE_NAME}"
|
||||||
}
|
}
|
||||||
|
|
||||||
remsh() {
|
remsh() {
|
||||||
|
|
Loading…
Reference in New Issue