16 244
правки
Строка 14: | Строка 14: | ||
service nginx restart | service nginx restart | ||
</syntaxhighlight> | </syntaxhighlight> | ||
# Так как по умолчанию доступ к <code>websocket-</code> и mqtt- | # Так как по умолчанию доступ к <code>websocket-</code> и mqtt-порт снаружи открыт — закройте его. Для этого откройте файл <code>/etc/mosquitto/conf.d/listeners.conf</code>: | ||
#:<syntaxhighlight lang="bash"> | #:<syntaxhighlight lang="bash"> | ||
nano /etc/mosquitto/conf.d/listeners.conf | nano /etc/mosquitto/conf.d/listeners.conf |