-
Notifications
You must be signed in to change notification settings - Fork 0
/
mosquitto.conf
63 lines (50 loc) · 1.96 KB
/
mosquitto.conf
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
59
60
61
62
63
# Config file for mosquitto
#
# See mosquitto.conf(5) for more information.
#
# =================================================================
# General configuration
# =================================================================
# When run as root, drop privileges to this user and its primary
# group.
# Leave blank to stay as root, but this is not recommended.
# If run as a non-root user, this setting has no effect.
# Note that on Windows this has no effect and so mosquitto should
# be started by the user you wish it to run as.
user mosquitto
# =================================================================
# Default listener
# =================================================================
listener 1883
protocol mqtt
# =================================================================
# Extra listeners
# =================================================================
listener 8083
protocol websockets
cafile /etc/ssl/cloudflare/origin_ca_rsa_root.pem
certfile /etc/ssl/cloudflare/cert.pem
keyfile /etc/ssl/cloudflare/key.pem
listener 8883
protocol mqtt
cafile /etc/ssl/cloudflare/origin_ca_rsa_root.pem
certfile /etc/ssl/cloudflare/cert.pem
keyfile /etc/ssl/cloudflare/key.pem
# =================================================================
# Logging
# =================================================================
# log_dest file /mosquitto/log/mosquitto.log
# log_type all
# websockets_log_level 255
# connection_messages true
# log_timestamp true
# =================================================================
# Security
# =================================================================
allow_anonymous false
# -----------------------------------------------------------------
# Default authentication and topic access control
# -----------------------------------------------------------------
# Control access to the broker using a password file. This file can be
# generated using the mosquitto_passwd utility.
# password_file /mosquitto/conf/passwd