Skip to content

Commit 1531e26

Browse files
committed
nmtt.conf moved due to nimble and updated
1 parent 1285a2c commit 1531e26

1 file changed

Lines changed: 40 additions & 4 deletions

File tree

Lines changed: 40 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Config file for nmqtt
1+
# Config file for nmqtt broker
22
#
33
# Source code is available at https://github.com/zevv/nmqtt
44
#
@@ -7,14 +7,19 @@
77
# Use the # character to indicate a comment, but only if it is the very first
88
# character on the line. Do NOT insert a comment in front of the options.
99

10+
#
1011
# The host is the IP-address which the broker is binding to. As default your
1112
# localhost, `127.0.0.1`, is used.
13+
#
1214
host = 127.0.0.1
1315

16+
#
1417
# The port which the broker is bind to. It is normal practice to use `1883` for
1518
# NON-SSL connections while `8883` is used for SSL-connections.
19+
#
1620
port = 1883
1721

22+
#
1823
# The verbosity level handles the stderr-output.
1924
# Level `1`
2025
# - This will print when a client connects and disconnect.
@@ -24,41 +29,72 @@ port = 1883
2429
# - This will print level 1 and 2 information and detailed data on each client
2530
# and the broker. This will reveal clients password, so it should NOT be
2631
# used in production.
32+
#
2733
verbosity = 1
2834

35+
#
2936
# The max lenght of the clients id. Max length is `65535`.
37+
#
3038
clientid_maxlen = 60
3139

40+
#
3241
# If spaces in the client id should be allowed.
42+
#
3343
clientid_spaces = false
3444

45+
#
3546
# If empty client id's is allowed. If it is set to `true`, the client will be
3647
# assigned a random integer as the client id.
48+
#
3749
clientid_empty = false
3850

51+
#
3952
# If set to true the publishers client id will be inserted in front of the
4053
# messages. This will reveal the clients id to all other connected clients.
4154
#
4255
# `false`
4356
# - message
4457
# `true`
4558
# - clientid:message
59+
#
4660
clientid_pass = false
4761

62+
#
4863
# Disconnect an existing client if new client has the same client id.
49-
client_kickold = false
64+
#
65+
client_kickold = true
5066

67+
#
5168
# The max simultaneous connections to the broker. Disabled when set
5269
# to `0`.
70+
#
5371
max_conn = 0
5472

73+
#
5574
# Allow anonymous connection - no need for username and password. If set to
56-
# true, then an absolute path to `password_file` is required.
75+
# false, then an absolute path to `password_file` is required.
76+
#
5777
allow_anonymous = true
5878

79+
#
5980
# The absolute path to the password file containing usernames and hashed
6081
# passwords.
6182
#
6283
# To generate the password files and insert entities use `nmqtt_password`:
6384
# $ nmqtt_password -a /path/to/nmqtt_pwd.conf NewUser
64-
password_file =
85+
#
86+
#password_file =
87+
88+
#
89+
# To activate a SSL connection you need a certificate and a private key.
90+
# When you specify both of them, the connection will automatic be using
91+
# SSL. It is common practice to change the port you a listening on from
92+
# 1883 to 8883, when using SSL.
93+
#
94+
# You have to specify the absolute path to both the certificate and the key.
95+
#
96+
# If you dont have a certificate and key, you can generate them with:
97+
# `openssl req -x509 -nodes -days 365 -newkey rsa:4096 -keyout mykey.pem -out mycert.pem`
98+
#
99+
#ssl_certificate =
100+
#ssl_key =

0 commit comments

Comments
 (0)