chore(gw): improve the default confs
This commit is contained in:
parent
0453702ce5
commit
020e04e5cf
|
@ -129,7 +129,7 @@ gateway.coap {
|
||||||
|
|
||||||
## DTLS Options
|
## DTLS Options
|
||||||
## See #{example_common_dtls_options} for more information
|
## See #{example_common_dtls_options} for more information
|
||||||
dtls.versions = ["dtlsv1"]
|
dtls.versions = ["dtlsv1.2", "dtlsv1"]
|
||||||
dtls.keyfile = "{{ platform_etc_dir }}/certs/key.pem"
|
dtls.keyfile = "{{ platform_etc_dir }}/certs/key.pem"
|
||||||
dtls.certfile = "{{ platform_etc_dir }}/certs/cert.pem"
|
dtls.certfile = "{{ platform_etc_dir }}/certs/cert.pem"
|
||||||
dtls.cacertfile = "{{ platform_etc_dir }}/certs/cacert.pem"
|
dtls.cacertfile = "{{ platform_etc_dir }}/certs/cacert.pem"
|
||||||
|
@ -182,6 +182,26 @@ gateway.mqttsn {
|
||||||
max_connections = 10240000
|
max_connections = 10240000
|
||||||
max_conn_rate = 1000
|
max_conn_rate = 1000
|
||||||
}
|
}
|
||||||
|
|
||||||
|
listeners.dtls.default {
|
||||||
|
bind = 1885
|
||||||
|
acceptors = 4
|
||||||
|
max_connections = 102400
|
||||||
|
max_conn_rate = 1000
|
||||||
|
|
||||||
|
## UDP Options
|
||||||
|
## See ${example_common_udp_options} for more information
|
||||||
|
udp.active_n = 100
|
||||||
|
udp.buffer = 16KB
|
||||||
|
|
||||||
|
## DTLS Options
|
||||||
|
## See #{example_common_dtls_options} for more information
|
||||||
|
dtls.versions = ["dtlsv1.2", "dtlsv1"]
|
||||||
|
dtls.keyfile = "{{ platform_etc_dir }}/certs/key.pem"
|
||||||
|
dtls.certfile = "{{ platform_etc_dir }}/certs/cert.pem"
|
||||||
|
dtls.cacertfile = "{{ platform_etc_dir }}/certs/cacert.pem"
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
gateway.lwm2m {
|
gateway.lwm2m {
|
||||||
|
|
|
@ -96,7 +96,6 @@ fields(lwm2m_structs) ->
|
||||||
, {lifetime_max, sc(duration())}
|
, {lifetime_max, sc(duration())}
|
||||||
, {qmode_time_windonw, sc(integer())}
|
, {qmode_time_windonw, sc(integer())}
|
||||||
, {auto_observe, sc(boolean())}
|
, {auto_observe, sc(boolean())}
|
||||||
, {mountpoint, sc(string())}
|
|
||||||
, {update_msg_publish_condition, sc(union([always, contains_object_list]))}
|
, {update_msg_publish_condition, sc(union([always, contains_object_list]))}
|
||||||
, {translators, sc(ref(translators))}
|
, {translators, sc(ref(translators))}
|
||||||
, {listeners, sc(ref(udp_listener_group))}
|
, {listeners, sc(ref(udp_listener_group))}
|
||||||
|
@ -270,7 +269,7 @@ gateway_common_options() ->
|
||||||
[ {enable, sc(boolean(), true)}
|
[ {enable, sc(boolean(), true)}
|
||||||
, {enable_stats, sc(boolean(), true)}
|
, {enable_stats, sc(boolean(), true)}
|
||||||
, {idle_timeout, sc(duration(), <<"30s">>)}
|
, {idle_timeout, sc(duration(), <<"30s">>)}
|
||||||
, {mountpoint, sc(binary(), undefined)}
|
, {mountpoint, sc(binary(), <<>>)}
|
||||||
, {clientinfo_override, sc(ref(clientinfo_override))}
|
, {clientinfo_override, sc(ref(clientinfo_override))}
|
||||||
, {authentication, sc(hoconsc:lazy(map()))}
|
, {authentication, sc(hoconsc:lazy(map()))}
|
||||||
].
|
].
|
||||||
|
|
Loading…
Reference in New Issue