Difference between revisions of "MQTT: mosquitto.conf"
Jump to navigation
Jump to search
Onnowpurbo (talk | contribs) |
Onnowpurbo (talk | contribs) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 7: | Line 7: | ||
log_dest file /var/log/mosquitto/mosquitto.log | log_dest file /var/log/mosquitto/mosquitto.log | ||
include_dir /etc/mosquitto/conf.d | include_dir /etc/mosquitto/conf.d | ||
+ | # PENTING! | ||
+ | bind_interface bond0 | ||
==Option 2== | ==Option 2== | ||
Line 24: | Line 26: | ||
allow_anonymous true | allow_anonymous true | ||
password_file /etc/mosquitto/passwd | password_file /etc/mosquitto/passwd | ||
− | + | # PENTING! | |
− | + | bind_interface bond0 | |
− | |||
− | |||
− | |||
− | |||
− | # | ||
− | |||
− |
Latest revision as of 05:35, 8 April 2022
Option 1
pid_file /run/mosquitto/mosquitto.pid allow_anonymous true persistence true persistence_location /var/lib/mosquitto/ log_dest file /var/log/mosquitto/mosquitto.log include_dir /etc/mosquitto/conf.d # PENTING! bind_interface bond0
Option 2
persistence true persistence_location /var/lib/mosquitto/ persistence_file mosquitto.db log_dest syslog log_dest stdout log_dest topic log_type error log_type warning log_type notice log_type information connection_messages true log_timestamp true allow_anonymous true password_file /etc/mosquitto/passwd # PENTING! bind_interface bond0