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

Merge pull request #4165 from zmstone/chore-merge-enterprise-configs

chore(conf): merge enterprise configs
Zaiming Shi 5 лет назад
Родитель
Сommit
e80959ea2f
8 измененных файлов с 1963 добавлено и 1910 удалено
  1. 0 170
      etc/cluster.conf
  2. 1951 51
      etc/emqx.conf
  3. 0 940
      etc/listeners.conf
  4. 0 170
      etc/logger.conf
  5. 0 98
      etc/rpc.conf
  6. 0 148
      etc/sys_mon.conf
  7. 0 327
      etc/zones.conf
  8. 12 6
      priv/emqx.schema

+ 0 - 170
etc/cluster.conf

@@ -1,170 +0,0 @@
-##--------------------------------------------------------------------
-## Cluster
-##--------------------------------------------------------------------
-
-## Cluster name.
-##
-## Value: String
-cluster.name = emqxcl
-
-## Specify the erlang distributed protocol.
-##
-## Value: Enum
-##  - inet_tcp: the default; handles TCP streams with IPv4 addressing.
-##  - inet6_tcp: handles TCP with IPv6 addressing.
-##  - inet_tls: using TLS for Erlang Distribution.
-##
-## vm.args: -proto_dist inet_tcp
-cluster.proto_dist = inet_tcp
-
-## Cluster auto-discovery strategy.
-##
-## Value: Enum
-## - manual: Manual join command
-## - static: Static node list
-## - mcast:  IP Multicast
-## - dns:    DNS A Record
-## - etcd:   etcd
-## - k8s:    Kubernetes
-##
-## Default: manual
-cluster.discovery = manual
-
-## Enable cluster autoheal from network partition.
-##
-## Value: on | off
-##
-## Default: on
-cluster.autoheal = on
-
-## Autoclean down node. A down node will be removed from the cluster
-## if this value > 0.
-##
-## Value: Duration
-## -h: hour, e.g. '2h' for 2 hours
-## -m: minute, e.g. '5m' for 5 minutes
-## -s: second, e.g. '30s' for 30 seconds
-##
-## Default: 5m
-cluster.autoclean = 5m
-
-##--------------------------------------------------------------------
-## Cluster using static node list
-
-## Node list of the cluster.
-##
-## Value: String
-## cluster.static.seeds = emqx1@127.0.0.1,emqx2@127.0.0.1
-
-##--------------------------------------------------------------------
-## Cluster using IP Multicast.
-
-## IP Multicast Address.
-##
-## Value: IP Address
-## cluster.mcast.addr = 239.192.0.1
-
-## Multicast Ports.
-##
-## Value: Port List
-## cluster.mcast.ports = 4369,4370
-
-## Multicast Iface.
-##
-## Value: Iface Address
-##
-## Default: 0.0.0.0
-## cluster.mcast.iface = 0.0.0.0
-
-## Multicast Ttl.
-##
-## Value: 0-255
-## cluster.mcast.ttl = 255
-
-## Multicast loop.
-##
-## Value: on | off
-## cluster.mcast.loop = on
-
-##--------------------------------------------------------------------
-## Cluster using DNS A records.
-
-## DNS name.
-##
-## Value: String
-## cluster.dns.name = localhost
-
-## The App name is used to build 'node.name' with IP address.
-##
-## Value: String
-## cluster.dns.app = emqx
-
-##--------------------------------------------------------------------
-## Cluster using etcd
-
-## Etcd server list, seperated by ','.
-##
-## Value: String
-## cluster.etcd.server = http://127.0.0.1:2379
-
-## The prefix helps build nodes path in etcd. Each node in the cluster
-## will create a path in etcd: v2/keys/<prefix>/<cluster.name>/<node.name>
-##
-## Value: String
-## cluster.etcd.prefix = emqxcl
-
-## The TTL for node's path in etcd.
-##
-## Value: Duration
-##
-## Default: 1m, 1 minute
-## cluster.etcd.node_ttl = 1m
-
-## Path to a file containing the client's private PEM-encoded key.
-##
-## Value: File
-## cluster.etcd.ssl.keyfile = {{ platform_etc_dir }}/certs/client-key.pem
-
-## The path to a file containing the client's certificate.
-##
-## Value: File
-## cluster.etcd.ssl.certfile = {{ platform_etc_dir }}/certs/client.pem
-
-## Path to the file containing PEM-encoded CA certificates. The CA certificates
-## are used during server authentication and when building the client certificate chain.
-##
-## Value: File
-## cluster.etcd.ssl.cacertfile = {{ platform_etc_dir }}/certs/ca.pem
-
-##--------------------------------------------------------------------
-## Cluster using Kubernetes
-
-## Kubernetes API server list, seperated by ','.
-##
-## Value: String
-## cluster.k8s.apiserver = http://10.110.111.204:8080
-
-## The service name helps lookup EMQ nodes in the cluster.
-##
-## Value: String
-## cluster.k8s.service_name = emqx
-
-## The address type is used to extract host from k8s service.
-##
-## Value: ip | dns | hostname
-## cluster.k8s.address_type = ip
-
-## The app name helps build 'node.name'.
-##
-## Value: String
-## cluster.k8s.app_name = emqx
-
-## The suffix added to dns and hostname get from k8s service
-##
-## Value: String
-## cluster.k8s.suffix = pod.cluster.local
-
-## Kubernetes Namespace
-##
-## Value: String
-## cluster.k8s.namespace = default

Разница между файлами не показана из-за своего большого размера
+ 1951 - 51
etc/emqx.conf


Разница между файлами не показана из-за своего большого размера
+ 0 - 940
etc/listeners.conf


+ 0 - 170
etc/logger.conf

@@ -1,170 +0,0 @@
-##--------------------------------------------------------------------
-## Log
-##--------------------------------------------------------------------
-
-## Where to emit the logs.
-## Enable the console (standard output) logs.
-##
-## Value: off | file | console | both
-## - off: disable logs entirely
-## - file: write logs only to file
-## - console: write logs only to standard I/O
-## - both: write logs both to file and standard I/O
-log.to = both
-
-## The log severity level.
-##
-## Value: debug | info | notice | warning | error | critical | alert | emergency
-##
-## Note: Only the messages with severity level higher than or equal to
-##       this level will be logged.
-##
-## Default: warning
-log.level = warning
-
-## The dir for log files.
-##
-## Value: Folder
-log.dir = {{ platform_log_dir }}
-
-## The log filename for logs of level specified in "log.level".
-##
-## If `log.rotation` is enabled, this is the base name of the
-## files. Each file in a rotated log is named <base_name>.N, where N is an integer.
-##
-## Value: String
-## Default: emqx.log
-log.file = emqx.log
-
-## Limits the total number of characters printed for each log event.
-##
-## Value: Integer
-## Default: No Limit
-#log.chars_limit = 8192
-
-## Enables the log rotation.
-## With this enabled, new log files will be created when the current
-## log file is full, max to `log.rotation.size` files will be created.
-##
-## Value: on | off
-## Default: on
-log.rotation = on
-
-## Maximum size of each log file.
-##
-## Value: Number
-## Default: 10M
-## Supported Unit: KB | MB | GB
-log.rotation.size = 10MB
-
-## Maximum rotation count of log files.
-##
-## Value: Number
-## Default: 5
-log.rotation.count = 5
-
-## To create additional log files for specific log levels.
-##
-## Value: File Name
-## Format: log.$level.file = $filename,
-##         where "$level" can be one of: debug, info, notice, warning,
-##                                       error, critical, alert, emergency
-## Note: Log files for a specific log level will only contain all the logs
-##       that higher than or equal to that level
-##
-#log.info.file  = info.log
-#log.error.file = error.log
-
-## The max allowed queue length before switching to sync mode.
-##
-## Log overload protection parameter. If the message queue grows
-## larger than this value the handler switches from anync to sync mode.
-##
-## Default: 100
-##
-#log.sync_mode_qlen = 100
-
-## The max allowed queue length before switching to drop mode.
-##
-## Log overload protection parameter. When the message queue grows
-## larger than this threshold, the handler switches to a mode in which
-## it drops all new events that senders want to log.
-##
-## Default: 3000
-##
-#log.drop_mode_qlen = 3000
-
-## The max allowed queue length before switching to flush mode.
-##
-## Log overload protection parameter. If the length of the message queue
-## grows larger than this threshold, a flush (delete) operation takes place.
-## To flush events, the handler discards the messages in the message queue
-## by receiving them in a loop without logging.
-##
-## Default: 8000
-##
-#log.flush_qlen = 8000
-
-## Kill the log handler when it gets overloaded.
-##
-## Log overload protection parameter. It is possible that a handler,
-## even if it can successfully manage peaks of high load without crashing,
-## can build up a large message queue, or use a large amount of memory.
-## We could kill the log handler in these cases and restart it after a
-## few seconds.
-##
-## Default: on
-##
-#log.overload_kill = on
-
-## The max allowed queue length before killing the log hanlder.
-##
-## Log overload protection parameter. This is the maximum allowed queue
-## length. If the message queue grows larger than this, the handler
-## process is terminated.
-##
-## Default: 20000
-##
-#log.overload_kill_qlen = 20000
-
-## The max allowed memory size before killing the log hanlder.
-##
-## Log overload protection parameter. This is the maximum memory size
-## that the handler process is allowed to use. If the handler grows
-## larger than this, the process is terminated.
-##
-## Default: 30MB
-##
-#log.overload_kill_mem_size = 30MB
-
-## Restart the log hanlder after some seconds.
-##
-## Log overload protection parameter. If the handler is terminated,
-## it restarts automatically after a delay specified in seconds.
-## The value "infinity" prevents restarts.
-##
-## Default: 5s
-##
-#log.overload_kill_restart_after = 5s
-
-## Max burst count and time window for burst control.
-##
-## Log overload protection parameter. Large bursts of log events - many
-## events received by the handler under a short period of time - can
-## potentially cause problems. By specifying the maximum number of events
-## to be handled within a certain time frame, the handler can avoid
-## choking the log with massive amounts of printouts.
-##
-## This config controls the maximum number of events to handle within
-## a time frame. After the limit is reached, successive events are
-## dropped until the end of the time frame.
-##
-## Note that there would be no warning if any messages were
-## dropped because of burst control.
-##
-## Comment this config out to disable the burst control feature.
-##
-## Value: MaxBurstCount,TimeWindow
-## Default: disabled
-##
-#log.burst_limit = 20000, 1s

+ 0 - 98
etc/rpc.conf

@@ -1,98 +0,0 @@
-##--------------------------------------------------------------------
-## RPC
-##--------------------------------------------------------------------
-## RPC Mode.
-##
-## Value: sync | async
-rpc.mode = async
-
-## Max batch size of async RPC requests.
-##
-## Value: Integer
-## Zero or negative value disables rpc batching.
-##
-## NOTE: RPC batch won't work when rpc.mode = sync
-rpc.async_batch_size = 256
-
-## RPC port discovery
-##
-## The strategy for discovering the RPC listening port of other nodes.
-##
-## Value: Enum
-## - manual: discover ports by `tcp_server_port` and `tcp_client_port`.
-## - stateless: discover ports in a stateless manner.
-##   If node name is `emqx<N>@127.0.0.1`, where the `<N>` is an integer,
-##   then the listening port will be `5370 + <N>`
-##
-## Defaults to `stateless`.
-rpc.port_discovery = stateless
-
-## TCP server port for RPC.
-##
-## Only takes effect when `rpc.port_discovery` = `manual`.
-##
-## Value: Port [1024-65535]
-#rpc.tcp_server_port = 5369
-
-## TCP port for outgoing RPC connections.
-##
-## Only takes effect when `rpc.port_discovery` = `manual`.
-##
-## Value: Port [1024-65535]
-#rpc.tcp_client_port = 5369
-
-## Number of outgoing RPC connections.
-##
-## Value: Interger [1-256]
-## Defaults to NumberOfCPUSchedulers / 2
-#rpc.tcp_client_num = 1
-
-## RCP Client connect timeout.
-##
-## Value: Seconds
-rpc.connect_timeout = 5s
-
-## TCP send timeout of RPC client and server.
-##
-## Value: Seconds
-rpc.send_timeout = 5s
-
-## Authentication timeout
-##
-## Value: Seconds
-rpc.authentication_timeout = 5s
-
-## Default receive timeout for call() functions
-##
-## Value: Seconds
-rpc.call_receive_timeout = 15s
-
-## Socket idle keepalive.
-##
-## Value: Seconds
-rpc.socket_keepalive_idle = 900s
-
-## TCP Keepalive probes interval.
-##
-## Value: Seconds
-rpc.socket_keepalive_interval = 75s
-
-## Probes lost to close the connection
-##
-## Value: Integer
-rpc.socket_keepalive_count = 9
-
-## Size of TCP send buffer.
-##
-## Value: Bytes
-rpc.socket_sndbuf = 1MB
-
-## Size of TCP receive buffer.
-##
-## Value: Seconds
-rpc.socket_recbuf = 1MB
-
-## Size of user-level software socket buffer.
-##
-## Value: Seconds
-rpc.socket_buffer = 1MB

+ 0 - 148
etc/sys_mon.conf

@@ -1,148 +0,0 @@
-##--------------------------------------------------------------------
-## System Monitor
-##--------------------------------------------------------------------
-
-## Enable Long GC monitoring. Disable if the value is 0.
-## Notice: don't enable the monitor in production for:
-## https://github.com/erlang/otp/blob/feb45017da36be78d4c5784d758ede619fa7bfd3/erts/emulator/beam/erl_gc.c#L421
-##
-## Value: Duration
-##  - h: hour
-##  - m: minute
-##  - s: second
-##  - ms: milliseconds
-##
-## Examples:
-##  - 2h:  2 hours
-##  - 30m: 30 minutes
-##  - 0.1s: 0.1 seconds
-##  - 100ms : 100 milliseconds
-##
-## Default: 0ms
-sysmon.long_gc = 0
-
-## Enable Long Schedule(ms) monitoring.
-##
-## See: http://erlang.org/doc/man/erlang.html#system_monitor-2
-##
-## Value: Duration
-##  - h: hour
-##  - m: minute
-##  - s: second
-##  - ms: milliseconds
-##
-## Examples:
-##  - 2h:  2 hours
-##  - 30m: 30 minutes
-##  - 0.1s: 0.1 seconds
-##  - 100ms: 100 milliseconds
-##
-## Default: 0ms
-sysmon.long_schedule = 240ms
-
-## Enable Large Heap monitoring.
-##
-## See: http://erlang.org/doc/man/erlang.html#system_monitor-2
-##
-## Value: bytes
-##
-## Default: 8M words. 32MB on 32-bit VM, 64MB on 64-bit VM.
-sysmon.large_heap = 8MB
-
-## Enable Busy Port monitoring.
-##
-## See: http://erlang.org/doc/man/erlang.html#system_monitor-2
-##
-## Value: true | false
-sysmon.busy_port = false
-
-## Enable Busy Dist Port monitoring.
-##
-## See: http://erlang.org/doc/man/erlang.html#system_monitor-2
-##
-## Value: true | false
-sysmon.busy_dist_port = true
-
-## The time interval for the periodic cpu check
-##
-## Value: Duration
-## -h: hour, e.g. '2h' for 2 hours
-## -m: minute, e.g. '5m' for 5 minutes
-## -s: second, e.g. '30s' for 30 seconds
-##
-## Default: 60s
-os_mon.cpu_check_interval = 60s
-
-## The threshold, as percentage of system cpu, for how much system cpu can be used before the corresponding alarm is set.
-##
-## Default: 80%
-os_mon.cpu_high_watermark = 80%
-
-## The threshold, as percentage of system cpu, for how much system cpu can be used before the corresponding alarm is clear.
-##
-## Default: 60%
-os_mon.cpu_low_watermark = 60%
-
-## The time interval for the periodic memory check
-##
-## Value: Duration
-## -h: hour, e.g. '2h' for 2 hours
-## -m: minute, e.g. '5m' for 5 minutes
-## -s: second, e.g. '30s' for 30 seconds
-##
-## Default: 60s
-os_mon.mem_check_interval = 60s
-
-## The threshold, as percentage of system memory, for how much system memory can be allocated before the corresponding alarm is set.
-##
-## Default: 70%
-os_mon.sysmem_high_watermark = 70%
-
-## The threshold, as percentage of system memory, for how much system memory can be allocated by one Erlang process before the corresponding alarm is set.
-##
-## Default: 5%
-os_mon.procmem_high_watermark = 5%
-
-## The time interval for the periodic process limit check
-##
-## Value: Duration
-##
-## Default: 30s
-vm_mon.check_interval = 30s
-
-## The threshold, as percentage of processes, for how many processes can simultaneously exist at the local node before the corresponding alarm is set.
-##
-## Default: 80%
-vm_mon.process_high_watermark = 80%
-
-## The threshold, as percentage of processes, for how many processes can simultaneously exist at the local node before the corresponding alarm is clear.
-##
-## Default: 60%
-vm_mon.process_low_watermark = 60%
-
-## Specifies the actions to take when an alarm is activated
-##
-## Value: String
-##  - log
-##  - publish
-##
-## Default: log,publish
-alarm.actions = log,publish
-
-## The maximum number of deactivated alarms
-##
-## Value: Integer 
-##
-## Default: 1000
-alarm.size_limit = 1000
-
-## Validity Period of deactivated alarms
-##
-## Value: Duration
-##  - h: hour
-##  - m: minute
-##  - s: second
-##  - ms: milliseconds
-##
-## Default: 24h
-alarm.validity_period = 24h

+ 0 - 327
etc/zones.conf

@@ -1,327 +0,0 @@
-##--------------------------------------------------------------------
-## Zones
-##--------------------------------------------------------------------
-
-##--------------------------------------------------------------------
-## External Zone
-
-## Idle timeout of the external MQTT connections.
-##
-## Value: duration
-zone.external.idle_timeout = 15s
-
-## Enable ACL check.
-##
-## Value: Flag
-zone.external.enable_acl = on
-
-## Enable ban check.
-##
-## Value: Flag
-zone.external.enable_ban = on
-
-## Enable per connection statistics.
-##
-## Value: on | off
-zone.external.enable_stats = on
-
-## The action when acl check reject current operation
-##
-## Value: ignore | disconnect
-## Default: ignore
-zone.external.acl_deny_action = ignore
-
-## Force the MQTT connection process GC after this number of
-## messages | bytes passed through.
-##
-## Numbers delimited by `|'. Zero or negative is to disable.
-zone.external.force_gc_policy = 16000|16MB
-
-## Max message queue length and total heap size to force shutdown
-## connection/session process.
-## Message queue here is the Erlang process mailbox, but not the number
-## of queued MQTT messages of QoS 1 and 2.
-##
-## Numbers delimited by `|'. Zero or negative is to disable.
-zone.external.force_shutdown_policy = 10000|32MB
-
-## Maximum MQTT packet size allowed.
-##
-## Value: Bytes
-## Default: 1MB
-## zone.external.max_packet_size = 64KB
-
-## Maximum length of MQTT clientId allowed.
-##
-## Value: Number [23-65535]
-## zone.external.max_clientid_len = 1024
-
-## Maximum topic levels allowed. 0 means no limit.
-##
-## Value: Number
-## zone.external.max_topic_levels = 7
-
-## Maximum QoS allowed.
-##
-## Value: 0 | 1 | 2
-## zone.external.max_qos_allowed = 2
-
-## Maximum Topic Alias, 0 means no limit.
-##
-## Value: 0-65535
-## zone.external.max_topic_alias = 65535
-
-## Whether the Server supports retained messages.
-##
-## Value: boolean
-## zone.external.retain_available = true
-
-## Whether the Server supports Wildcard Subscriptions
-##
-## Value: boolean
-## zone.external.wildcard_subscription = false
-
-## Whether the Server supports Shared Subscriptions
-##
-## Value: boolean
-## zone.external.shared_subscription = false
-
-## Server Keep Alive
-##
-## Value: Number
-## zone.external.server_keepalive = 0
-
-## The backoff for MQTT keepalive timeout. The broker will kick a connection out
-## until 'Keepalive * backoff * 2' timeout.
-##
-## Value: Float > 0.5
-zone.external.keepalive_backoff = 0.75
-
-## Maximum number of subscriptions allowed, 0 means no limit.
-##
-## Value: Number
-zone.external.max_subscriptions = 0
-
-## Force to upgrade QoS according to subscription.
-##
-## Value: on | off
-zone.external.upgrade_qos = off
-
-## Maximum size of the Inflight Window storing QoS1/2 messages delivered but unacked.
-##
-## Value: Number
-zone.external.max_inflight = 32
-
-## Retry interval for QoS1/2 message delivering.
-##
-## Value: Duration
-zone.external.retry_interval = 30s
-
-## Maximum QoS2 packets (Client -> Broker) awaiting PUBREL, 0 means no limit.
-##
-## Value: Number
-zone.external.max_awaiting_rel = 100
-
-## The QoS2 messages (Client -> Broker) will be dropped if awaiting PUBREL timeout.
-##
-## Value: Duration
-zone.external.await_rel_timeout = 300s
-
-## Default session expiry interval for MQTT V3.1.1 connections.
-##
-## Value: Duration
-## -d: day
-## -h: hour
-## -m: minute
-## -s: second
-##
-## Default: 2h, 2 hours
-zone.external.session_expiry_interval = 2h
-
-## Maximum queue length. Enqueued messages when persistent client disconnected,
-## or inflight window is full. 0 means no limit.
-##
-## Value: Number >= 0
-zone.external.max_mqueue_len = 1000
-
-## Topic priorities.
-## 'none' to indicate no priority table (by default), hence all messages
-## are treated equal
-##
-## Priority number [1-255]
-## Example: topic/1=10,topic/2=8
-## NOTE: comma and equal signs are not allowed for priority topic names
-## NOTE: messages for topics not in the priority table are treated as
-##       either highest or lowest priority depending on the configured
-##       value for mqueue_default_priority
-##
-zone.external.mqueue_priorities = none
-
-## Default to highest priority for topics not matching priority table
-##
-## Value: highest | lowest
-zone.external.mqueue_default_priority = highest
-
-## Whether to enqueue QoS0 messages.
-##
-## Value: false | true
-zone.external.mqueue_store_qos0 = true
-
-## Whether to turn on flapping detect
-##
-## Value: on | off
-zone.external.enable_flapping_detect = off
-
-## Message limit for the a external MQTT connection.
-##
-## Value: Number,Duration
-## Example: 100 messages per 10 seconds.
-#zone.external.rate_limit.conn_messages_in = 100,10s
-
-## Bytes limit for a external MQTT connections.
-##
-## Value: Number,Duration
-## Example: 100KB incoming per 10 seconds.
-#zone.external.rate_limit.conn_bytes_in = 100KB,10s
-
-## Messages quota for the each of external MQTT connection.
-## This value consumed by the number of recipient on a message.
-##
-## Value: Number, Duration
-##
-## Example: 100 messaegs per 1s
-#zone.external.quota.conn_messages_routing = 100,1s
-
-## Messages quota for the all of external MQTT connections.
-## This value consumed by the number of recipient on a message.
-##
-## Value: Number, Duration
-##
-## Example: 200000 messaegs per 1s
-#zone.external.quota.overall_messages_routing = 200000,1s
-
-## All the topics will be prefixed with the mountpoint path if this option is enabled.
-##
-## Variables in mountpoint path:
-##  - %c: clientid
-##  - %u: username
-##
-## Value: String
-## zone.external.mountpoint = devicebound/
-
-## Whether use username replace client id
-##
-## Value: boolean
-## Default: false
-zone.external.use_username_as_clientid = false
-
-## Whether to ignore loop delivery of messages.(for mqtt v3.1.1)
-##
-## Value: true | false
-zone.external.ignore_loop_deliver = false
-
-## Whether to parse the MQTT frame in strict mode
-##
-## Value: true | false
-zone.external.strict_mode = false
-
-## Specify the response information returned to the client
-## 
-## Value: String
-## zone.external.response_information = example
-
-##--------------------------------------------------------------------
-## Internal Zone
-
-zone.internal.allow_anonymous = true
-
-## Enable per connection stats.
-##
-## Value: Flag
-zone.internal.enable_stats = on
-
-## Enable ACL check.
-##
-## Value: Flag
-zone.internal.enable_acl = off
-
-## The action when acl check reject current operation
-##
-## Value: ignore | disconnect
-## Default: ignore
-zone.internal.acl_deny_action = ignore
-
-## See zone.$name.force_gc_policy
-## zone.internal.force_gc_policy = 128000|128MB
-
-## See zone.$name.wildcard_subscription.
-##
-## Value: boolean
-## zone.internal.wildcard_subscription = true
-
-## See zone.$name.shared_subscription.
-##
-## Value: boolean
-## zone.internal.shared_subscription = true
-
-## See zone.$name.max_subscriptions.
-##
-## Value: Integer
-zone.internal.max_subscriptions = 0
-
-## See zone.$name.max_inflight
-##
-## Value: Number
-zone.internal.max_inflight = 128
-
-## See zone.$name.max_awaiting_rel
-##
-## Value: Number
-zone.internal.max_awaiting_rel = 1000
-
-## See zone.$name.max_mqueue_len
-##
-## Value: Number >= 0
-zone.internal.max_mqueue_len = 10000
-
-## Whether to enqueue Qos0 messages.
-##
-## Value: false | true
-zone.internal.mqueue_store_qos0 = true
-
-## Whether to turn on flapping detect
-##
-## Value: on | off
-zone.internal.enable_flapping_detect = off
-
-## See zone.$name.force_shutdown_policy
-zone.internal.force_shutdown_policy = 128000|128MB
-
-## All the topics will be prefixed with the mountpoint path if this option is enabled.
-##
-## Variables in mountpoint path:
-##  - %c: clientid
-##  - %u: username
-##
-## Value: String
-## zone.internal.mountpoint = cloudbound/
-
-## Whether to ignore loop delivery of messages.(for mqtt v3.1.1)
-##
-## Value: true | false
-zone.internal.ignore_loop_deliver = false
-
-## Whether to parse the MQTT frame in strict mode
-##
-## Value: true | false
-zone.internal.strict_mode = false
-
-## Specify the response information returned to the client
-## 
-## Value: String
-## zone.internal.response_information = example
-
-## Allow the zone's clients to bypass authentication step
-##
-## Value: true | false
-zone.internal.bypass_auth_plugins = true

+ 12 - 6
priv/emqx.schema

@@ -689,6 +689,12 @@ end}.
   {datatype, {enum, [allow, deny]}}
   {datatype, {enum, [allow, deny]}}
 ]}.
 ]}.
 
 
+%% @doc Default ACL file.
+{mapping, "acl_file", "emqx.acl_file", [
+  {datatype, string},
+  hidden
+]}.
+
 %% @doc Enable ACL cache for publish.
 %% @doc Enable ACL cache for publish.
 {mapping, "enable_acl_cache", "emqx.enable_acl_cache", [
 {mapping, "enable_acl_cache", "emqx.enable_acl_cache", [
   {default, on},
   {default, on},
@@ -1239,9 +1245,9 @@ end}.
 ]}.
 ]}.
 
 
 {mapping, "listener.tcp.$name.high_watermark", "emqx.listeners", [
 {mapping, "listener.tcp.$name.high_watermark", "emqx.listeners", [
-  {datatype, bytesize},
-  {default, "1MB"}
-]}.
+   {datatype, bytesize},
+   {default, "1MB"}
+ ]}.
 
 
 {mapping, "listener.tcp.$name.tune_buffer", "emqx.listeners", [
 {mapping, "listener.tcp.$name.tune_buffer", "emqx.listeners", [
   {datatype, flag},
   {datatype, flag},
@@ -1336,9 +1342,9 @@ end}.
 ]}.
 ]}.
 
 
 {mapping, "listener.ssl.$name.high_watermark", "emqx.listeners", [
 {mapping, "listener.ssl.$name.high_watermark", "emqx.listeners", [
-  {datatype, bytesize},
-  {default, "1MB"}
-]}.
+   {datatype, bytesize},
+   {default, "1MB"}
+ ]}.
 
 
 {mapping, "listener.ssl.$name.tune_buffer", "emqx.listeners", [
 {mapping, "listener.ssl.$name.tune_buffer", "emqx.listeners", [
   {datatype, flag},
   {datatype, flag},