per_listener_settings true

# Unencrypted MQTT over TCP
listener 1883

listener 1884
password_file pwfile

listener 1885
auth_plugin ./auth_plugin.so

listener 1886
password_file pwfile
auth_plugin ./auth_plugin.so


# Encrypted MQTT over TCP
listener 8883
cafile ../ssl/all-ca.crt
certfile ../ssl/server.crt
keyfile ../ssl/server.key

listener 8884
cafile ../ssl/all-ca.crt
certfile ../ssl/server.crt
keyfile ../ssl/server.key
password_file pwfile

listener 8885
cafile ../ssl/all-ca.crt
certfile ../ssl/server.crt
keyfile ../ssl/server.key
auth_plugin ./auth_plugin.so

listener 8886
cafile ../ssl/all-ca.crt
certfile ../ssl/server.crt
keyfile ../ssl/server.key
password_file pwfile
auth_plugin ./auth_plugin.so


# Unencrypted MQTT over WebSockets
listener 8000
protocol websockets

listener 8001
protocol websockets
password_file pwfile

listener 8002
protocol websockets
auth_plugin ./auth_plugin.so

listener 8003
protocol websockets
password_file pwfile
auth_plugin ./auth_plugin.so


# Encrypted MQTT over WebSockets
listener 4430
protocol websockets
cafile ../ssl/all-ca.crt
certfile ../ssl/server.crt
keyfile ../ssl/server.key

listener 4431
protocol websockets
cafile ../ssl/all-ca.crt
certfile ../ssl/server.crt
keyfile ../ssl/server.key
password_file pwfile

listener 4432
protocol websockets
cafile ../ssl/all-ca.crt
certfile ../ssl/server.crt
keyfile ../ssl/server.key
auth_plugin ./auth_plugin.so

listener 4433
protocol websockets
cafile ../ssl/all-ca.crt
certfile ../ssl/server.crt
keyfile ../ssl/server.key
password_file pwfile
auth_plugin ./auth_plugin.so


#log_dest file mosquitto.log
#log_type all
