Skip to content

Instantly share code, notes, and snippets.

@psujit775
Created April 7, 2022 17:54
Show Gist options
  • Save psujit775/29551b6c1427f2beca0201e2e8b3ff93 to your computer and use it in GitHub Desktop.
Save psujit775/29551b6c1427f2beca0201e2e8b3ff93 to your computer and use it in GitHub Desktop.
mosquitto.conf fro mqtt websocket
#web socket
listener 9001
protocol websockets
pid_file /var/run/mosquitto.pid
user ubuntu
persistence true
persistence_location /var/lib/mosquitto/
max_connections -1
log_type all
log_dest file /var/log/mosquitto/mosquitto.log
connection_messages true
log_timestamp true
log_timestamp_format %Y-%m-%dT%H:%M:%S
include_dir /etc/mosquitto/conf.d
password_file /etc/mosquitto/passwd
allow_anonymous false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment