Explorar el Código

fix(emqx_exhook): add verify field in the ssl conf

firest hace 4 años
padre
commit
4063bcea9f
Se han modificado 1 ficheros con 3 adiciones y 0 borrados
  1. 3 0
      apps/emqx_exhook/src/emqx_exhook_schema.erl

+ 3 - 0
apps/emqx_exhook/src/emqx_exhook_schema.erl

@@ -73,6 +73,9 @@ fields(ssl_conf) ->
     , {keyfile,
        sc(binary(),
           #{example => <<"{{ platform_etc_dir }}/certs/key.pem">>})}
+    , {verify,
+       sc(hoconsc:enum([verify_peer, verify_none]),
+          #{example => <<"verify_none">>})}
     ].
 
 %% types