Mosquitto custom configuration

Hi,
I’m dealing with mosquitto and want to make my own custom configuration in my RUTX08 (with fw RUTX_R_00.07.15 - mosquitto 2.0.21)
Is this the correct file format?

config mqtt 'mqtt'
	option enabled '1'
	option custom_enabled '0'
	list local_port '1883'
	option anonymous_access '1'
	option persistence '0'
	option use_tls_ssl '0'
	option allow_ra '1'
	option max_queued_messages '1000'

What are all the possible settings and values?
Is mosquitto package compiled with websockets? How can I enable websockets in this config? And secure websockets?
Thanks!!

Hello,

Yes.

For the main MQTT configuration, the ones you’ve listed are the ones that are available. Anything extra looks to belong to the bridge & topic configurations as seen in the WebUI:




We don’t exactly have a list of ALL of the available options, but generally speaking, anything that you see in the WebUI will also appear in the config file.

When writing mosquitto -h, there are no websocket-related help options given, nor are there any options when configuring the actual MQTT options in the WebUI, so I believe the one that we have is not compiled with websocket support included. I’ve also found an old note from our R&D stating that this is not included.

I did, however, find this topic from OpenWRT that could be of use to you: OpenWrt Forum Archive

Regards,
M.