Просмотр исходного кода

chore: add desc for ssl_options

zhongwencool 2 лет назад
Родитель
Сommit
73487ecdd5

+ 0 - 1
apps/emqx_dashboard/src/emqx_dashboard_listener.erl

@@ -179,7 +179,6 @@ ensure_ssl_cert(#{<<"listeners">> := #{<<"https">> := #{<<"bind">> := Bind} = Ht
 ->
     Https1 = emqx_dashboard_schema:https_converter(Https0, #{}),
     Conf1 = emqx_utils_maps:deep_put([<<"listeners">>, <<"https">>], Conf0, Https1),
-    io:format("111~p~n", [Conf1]),
     Ssl = maps:get(<<"ssl_options">>, Https1, undefined),
     Opts = #{required_keys => [[<<"keyfile">>], [<<"certfile">>], [<<"cacertfile">>]]},
     case emqx_tls_lib:ensure_ssl_files(?DIR, Ssl, Opts) of

+ 2 - 0
apps/emqx_dashboard/src/emqx_dashboard_schema.erl

@@ -243,6 +243,8 @@ desc("http") ->
     ?DESC(desc_http);
 desc("https") ->
     ?DESC(desc_https);
+desc("ssl_options") ->
+    ?DESC(ssl_options);
 desc(_) ->
     undefined.