chore: add desc for ssl_options
This commit is contained in:
parent
82ea9e5a04
commit
73487ecdd5
|
@ -179,7 +179,6 @@ ensure_ssl_cert(#{<<"listeners">> := #{<<"https">> := #{<<"bind">> := Bind} = Ht
|
||||||
->
|
->
|
||||||
Https1 = emqx_dashboard_schema:https_converter(Https0, #{}),
|
Https1 = emqx_dashboard_schema:https_converter(Https0, #{}),
|
||||||
Conf1 = emqx_utils_maps:deep_put([<<"listeners">>, <<"https">>], Conf0, Https1),
|
Conf1 = emqx_utils_maps:deep_put([<<"listeners">>, <<"https">>], Conf0, Https1),
|
||||||
io:format("111~p~n", [Conf1]),
|
|
||||||
Ssl = maps:get(<<"ssl_options">>, Https1, undefined),
|
Ssl = maps:get(<<"ssl_options">>, Https1, undefined),
|
||||||
Opts = #{required_keys => [[<<"keyfile">>], [<<"certfile">>], [<<"cacertfile">>]]},
|
Opts = #{required_keys => [[<<"keyfile">>], [<<"certfile">>], [<<"cacertfile">>]]},
|
||||||
case emqx_tls_lib:ensure_ssl_files(?DIR, Ssl, Opts) of
|
case emqx_tls_lib:ensure_ssl_files(?DIR, Ssl, Opts) of
|
||||||
|
|
|
@ -243,6 +243,8 @@ desc("http") ->
|
||||||
?DESC(desc_http);
|
?DESC(desc_http);
|
||||||
desc("https") ->
|
desc("https") ->
|
||||||
?DESC(desc_https);
|
?DESC(desc_https);
|
||||||
|
desc("ssl_options") ->
|
||||||
|
?DESC(ssl_options);
|
||||||
desc(_) ->
|
desc(_) ->
|
||||||
undefined.
|
undefined.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue