fix(emqx_bridge_azure_event_hub): make ssl mandatory (and give an example)

This commit is contained in:
Stefan Strigler 2023-11-02 10:52:46 +01:00
parent 29683072a1
commit a89b0c8cf4
1 changed files with 14 additions and 2 deletions

View File

@ -215,7 +215,13 @@ values({post, connector}) ->
values(common_config), values(common_config),
#{ #{
name => <<"my_azure_event_hub_producer_connector">>, name => <<"my_azure_event_hub_producer_connector">>,
type => ?AEH_CONNECTOR_TYPE_BIN type => ?AEH_CONNECTOR_TYPE_BIN,
ssl => #{
enable => true,
server_name_indication => <<"auto">>,
verify => <<"verify_none">>,
versions => [<<"tlsv1.3">>, <<"tlsv1.2">>]
}
} }
); );
values({post, producer}) -> values({post, producer}) ->
@ -335,7 +341,13 @@ connector_overrides() ->
) )
} }
), ),
ssl => mk(ref(ssl_client_opts), #{default => #{<<"enable">> => true}}), ssl => mk(
ref(ssl_client_opts),
#{
required => true,
default => #{<<"enable">> => true}
}
),
type => mk( type => mk(
?AEH_CONNECTOR_TYPE, ?AEH_CONNECTOR_TYPE,
#{ #{