Skip to content

Instantly share code, notes, and snippets.

@andreareginato
Last active August 29, 2015 14:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andreareginato/61aa22c7f7a3fe737849 to your computer and use it in GitHub Desktop.
Save andreareginato/61aa22c7f7a3fe737849 to your computer and use it in GitHub Desktop.
# Listen to all MQTT requests (port 1883)
listen mqtt
# MQTT binding to port 1883
bind *:1883
# communication mode (MQTT works on top of TCP)
mode tcp
option tcplog
# balance mode (to choose which MQTT server to use)
balance leastconn
# MQTT server 1
server mosca_1 178.62.122.204:1883 check
# MQTT server 2
server mosca_2 178.62.104.172:1883 check
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment