-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathtinymqtt.conf.example
59 lines (42 loc) · 1.08 KB
/
tinymqtt.conf.example
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# server port
port=1883
# location of the password file
password_file=pwd.conf
# if allow anonymous login, the broker won't check the username and password
allow_anonymous=true
# enable acl
acl_enable=false
# the maximum number of unacknowalegded publish packet
inflight_window=1
# the number of io thread
io_threads=8
# mysql configuration
mysql_enable=true
mysql_host=localhost
mysql_port=3306
mysql_username=root
mysql_password=xxxxxxxxx
mysql_db=tinymqtt_db
mysql_pool_size=50
# mongodb message store configuration
mongodb_uri=mongodb://localhost:27017
# unacknowalegded messages will be stored into mongodb
# after reaching mongodb_store_trigger
mongodb_store_trigger=100
# cluster configuration
cluster_enable=true
# using redis for cluster member automatic discovery
redis_host=127.0.0.1
redis_port=6379
node_ip=127.0.0.1
#plugins=[rabbitmq, delay_message]
rabbitmq_ip=192.168.2.3
rabbitmq_port=5672
rabbitmq_vhost=/
rabbitmq_username=guest
rabbitmq_password=xxxxxx
delay_message_enable=true
# SSL/TLS configuration
ssl_enable=true
certfile=ca/server-cert.pem
keyfile=ca/server-key.pem