chore(gw): reformat config options

This commit is contained in:
JianBo He 2021-08-17 18:14:08 +08:00
parent b8cb31c0ff
commit 9190f1f6f9
1 changed files with 152 additions and 159 deletions

View File

@ -2,10 +2,10 @@
## EMQ X Gateway configurations ## EMQ X Gateway configurations
##-------------------------------------------------------------------- ##--------------------------------------------------------------------
gateway: { ## TODO: These configuration options are temporary example here.
## In the final version, it will be commented out.
stomp: {
gateway.stomp {
frame: { frame: {
max_headers: 10 max_headers: 10
max_headers_length: 1024 max_headers_length: 1024
@ -36,12 +36,13 @@ gateway: {
max_conn_rate: 1000 max_conn_rate: 1000
active_n: 100 active_n: 100
} }
} }
coap: { gateway.coap: {
enable_stats: false enable_stats: false
#authentication.enable: false
authentication: { authentication: {
enable: true enable: true
authenticators: [ authenticators: [
@ -54,8 +55,6 @@ gateway: {
] ]
} }
#authentication.enable: false
heartbeat: 30s heartbeat: 30s
notify_type: qos notify_type: qos
subscribe_qos: qos0 subscribe_qos: qos0
@ -63,9 +62,9 @@ gateway: {
listener.udp.1: { listener.udp.1: {
bind: 5683 bind: 5683
} }
} }
mqttsn: { gateway.mqttsn: {
## The MQTT-SN Gateway ID in ADVERTISE message. ## The MQTT-SN Gateway ID in ADVERTISE message.
gateway_id: 1 gateway_id: 1
@ -106,10 +105,9 @@ gateway: {
max_connections: 10240000 max_connections: 10240000
max_conn_rate: 1000 max_conn_rate: 1000
} }
} }
## Extension Protocol Gateway gateway.exproto: {
exproto: {
## The gRPC server to accept requests ## The gRPC server to accept requests
server: { server: {
bind: 9100 bind: 9100
@ -137,19 +135,15 @@ gateway: {
#listener.ssl.1: {} #listener.ssl.1: {}
#listener.udp.1: {} #listener.udp.1: {}
#listener.dtls.1: {} #listener.dtls.1: {}
} }
gateway.lwm2m: {
lwm2m: {
xml_dir: "{{ platform_etc_dir }}/lwm2m_xml" xml_dir: "{{ platform_etc_dir }}/lwm2m_xml"
lifetime_min: 1s lifetime_min: 1s
lifetime_max: 86400s lifetime_max: 86400s
qmode_time_windonw: 22 qmode_time_windonw: 22
auto_observe: false auto_observe: false
mountpoint: "lwm2m/%e/" mountpoint: "lwm2m/%e/"
@ -168,5 +162,4 @@ gateway: {
listener.udp.1 { listener.udp.1 {
bind: 5783 bind: 5783
} }
}
} }