translator, wb_editors
4256
правок
Matveevrj (обсуждение | вклад) |
Matveevrj (обсуждение | вклад) |
||
Строка 9: | Строка 9: | ||
Чтобы установить пароль, настройте mosquitto и nginx: | Чтобы установить пароль, настройте mosquitto и nginx: | ||
# | #Откройте файл /etc/mosquitto/conf.d/10listeners.conf и приведите его к виду: | ||
#:<syntaxhighlight lang="bash"> | |||
# This file should be used to define external mosquitto listeners | |||
# (which are not used by internal services). | |||
# Default MQTT port listener. | |||
# | |||
# It allows anonymous listeners by default to be compatible with | |||
# old Wiren Board mosquitto configuration. | |||
# | |||
# It is recommended to add password authentication and TLS for security. | |||
listener 1883 127.0.0.1 | |||
allow_anonymous true | |||
acl_file /etc/mosquitto/acl/default.conf | |||
password_file /etc/mosquitto/passwd/default.conf | |||
# Default Websockets listener. | |||
# | |||
# It is used by Wiren Board Web interface. | |||
# | |||
# It allows anonymous listeners by default to be compatible with | |||
# old Wiren Board mosquitto configuration. | |||
# | |||
# It is recommended to add password authentication for security. | |||
listener 18883 127.0.0.1 | |||
protocol websockets | |||
allow_anonymous true | |||
acl_file /etc/mosquitto/acl/default.conf | |||
password_file /etc/mosquitto/passwd/default.conf | |||
</syntaxhighlight> | |||
#:Изменить файл можно открыв его в текстовом редакторе, например, nano: | #:Изменить файл можно открыв его в текстовом редакторе, например, nano: | ||
#:<syntaxhighlight lang="bash"> | #:<syntaxhighlight lang="bash"> |