Skip to content

Commit

Permalink
* MDF [nanomq_example.conf] update nanomq_example.conf.
Browse files Browse the repository at this point in the history
  • Loading branch information
xinyi-xs authored and JaylinYu committed Apr 25, 2023
1 parent 160a223 commit f45a581
Showing 1 changed file with 1 addition and 109 deletions.
110 changes: 1 addition & 109 deletions etc/nanomq_example.conf
Original file line number Diff line number Diff line change
Expand Up @@ -94,11 +94,6 @@ mqtt.session {
}

listeners.tcp {
# # enable tcp
# #
# # Value: true | false
enable = true

# # bind
# # Connect with the host and port
# #
Expand All @@ -111,11 +106,6 @@ listeners.tcp {
# #============================================================

listeners.ssl {
# # enable tls
# #
# # Value: true | false
enable = false

# # tls url
# #
# # Value: "host:port"
Expand Down Expand Up @@ -167,11 +157,6 @@ listeners.ssl {
# # WebSocket
# #============================================================
listeners.ws {
# # allow websocket
# #
# # Value: true | false
enable = true

# # websocket url
# #
# # Value: "host:port/path"
Expand All @@ -181,11 +166,6 @@ listeners.ws {

# # -------------------- SQLite Config -------------------- ##
sqlite {
# # Enable sqlite cache
# # Whether to enable sqlite
# #
# # Value: boolean
enable = false
# # Max message limitation for caching
# # ( 0 means ineffective )
# # Value: 1-infinity
Expand All @@ -212,10 +192,6 @@ sqlite {
# # Http server
# #============================================================
http_server {
# # allow http server
# #
# # Value: true | false
enable = false
# # http server port
# #
# # Value: 0 - 65535
Expand Down Expand Up @@ -302,10 +278,6 @@ log {
# #============================================================

# webhook {
# ## Enable web hook
# ##
# ## Value: boolean
# enable=false
# ## Webhook URL
# ##
# ## Value: String
Expand Down Expand Up @@ -369,13 +341,6 @@ authorization {
deny_action = ignore

cache = {
## Whether to enable ACL cache.
##
## If enabled, ACLs roles for each client will be cached in the memory
##
## Value: on | off
enable = false

## The maximum count of ACL entries can be cached for a client.
##
## Value: Integer greater than 0
Expand All @@ -392,7 +357,6 @@ authorization {
sources = [
{
type = simple
enable = false

users = [
{
Expand All @@ -407,7 +371,6 @@ authorization {
},
{
type = file
enable = false

rules = [
## Allow MQTT client using username "dashboard" to subscribe to "$SYS/#" topics
Expand All @@ -422,10 +385,6 @@ authorization {
},
{
type = http
# # Enable Authentication/ACL with HTTP API
# #
# # Value: true | false
enable = false
auth_req {
# # HTTP URL API path for Auth Request
# #
Expand Down Expand Up @@ -540,13 +499,6 @@ bridges.mqtt {
# #
# # Value: String
name = emqx
# # Whether to enable bridge mode for mqtt bridge
# #
# # This option is prepared for the mqtt broker which does not
# # support bridge_mode such as the mqtt-plugin of the rabbitmq
# #
# # Value: boolean
enable = true
connector {
# # Bridge address: host:port .
# #
Expand Down Expand Up @@ -733,10 +685,6 @@ bridges.mqtt {
# # Ssl config ##
# # Ssl config is invalid when working in MQTT over QUIC mode ##
ssl {
# # enable ssl
# #
# # Value: true | false
enable = false
# # Ssl key password
# # String containing the user's password. Only used if the private keyfile
# # is password-protected.
Expand Down Expand Up @@ -891,11 +839,6 @@ bridges.mqtt {
}
]
sqlite {
# # Enable sqlite cache
# # Whether to enable sqlite
# #
# # Value: boolean
enable = false
# # Max message limitation for caching
# # ( 0 means ineffective )
# # Value: 1-infinity
Expand Down Expand Up @@ -931,14 +874,6 @@ bridges.aws.nodes = [
# #
# # Value: String
name = aws
# # Whether to enable bridge mode for mqtt bridge
# #
# # This option is prepared for the mqtt broker which does not
# # support bridge_mode such as the mqtt-plugin of the rabbitmq
# #
# # Value: boolean
enable = false

connector {
# # Aws address: host:port .
# #
Expand Down Expand Up @@ -978,10 +913,6 @@ bridges.aws.nodes = [
# password = "passwd"

ssl {
# # enable ssl
# #
# # Value: true | false
enable = false
# # Ssl key password
# # String containing the user's password. Only used if the private keyfile
# # is password-protected.
Expand Down Expand Up @@ -1045,30 +976,14 @@ bridges.aws.nodes = [
# # MQTT Rule Engine
# #============================================================

# # Rule engine option, when persistence with
# # rule engine, this option is must be ON.
# #
# # Value: ON | OFF
rules.option = ON

rules.sqlite {
# # Rule engine option SQLite3 database path
# # Rule engine db path, default is exec path.
# #
# # Value: File
path = "/tmp/sqlite_rule.db"
# # Rule engine option repub database enable status
# # Rule engine db enable status.
# #
# # Value: Boolen
enable = true
rules = [
{
# # Rule engine option repub database enable status
# # Rule engine db enable status
# #
# # Value: Boolen
enable = true
# # Rule engine option sql
# # Rule engine sql clause.
# #
Expand All @@ -1081,7 +996,6 @@ rules.sqlite {
table = broker
},
{
enable = true
sql = "SELECT topic, payload FROM \"abc\""
table = broker1
}
Expand All @@ -1092,23 +1006,13 @@ rules.sqlite {
# # MQTT Rule Engine for Repub
# #====================================================================
rules.repub {
# # Rule engine option repub database enable status
# # Rule engine db enable status.
# #
# # Value: Boolen
enable = true
rules = [
{
# # Rule engine option repub database enable status
# # Rule engine db enable status.
# #
# # Value: Boolen
enable = true
# # Repub address: host:port .
# #
# # Value: String
# # Example: mqtt-tcp://127.0.0.1:1883
address = "mqtt-tcp://localhost:1883"
server = "mqtt-tcp://localhost:1883"
# # Repub topic .
# #
# # Value: String
Expand Down Expand Up @@ -1154,7 +1058,6 @@ rules.repub {
sql = "SELECT payload.x.y as y, payload.z as z FROM \"#\" WHERE y > 10 and z != 'str'"
},
{
enable = true
server = "mqtt-tcp://localhost:1883"
topic = "topic/repub2"
proto_ver = 4
Expand All @@ -1177,18 +1080,8 @@ rules.mysql {
# #
# # Value: File
name = "mysql_rule_db"
# # Rule engine option mysql database enable status
# # Rule engine db enable status.
# #
# # Value: Boolen
enable = false
rules = [
{
# # Rule engine option mysql database enable status
# # Rule engine db enable status.
# #
# # Value: Boolen
enable = true
# # Rule engine option mysql database table name
# # Rule engine db table name.
# #
Expand All @@ -1213,7 +1106,6 @@ rules.mysql {
sql = "SELECT payload.x.y as y, payload.z as z FROM \"#\" WHERE y > 10 and z != 'str'"
},
{
enable = true
table = broker1
host = localhost
username = username
Expand Down

0 comments on commit f45a581

Please sign in to comment.