What should the content of *.conf be written?

What should the content of *.conf be written?

customize (Optional): If you enable it, it read additional config files (*.conf) from /share/mosquitto

Is there an example file? and template file?

it’s the same *.conf file you would use for a standard mqtt bridge.
Mine (for cloudmqtt) looks like this (just fill out the stuff in “<>”):

connection cloudmqtt
address <server_address>:<server_port>
remote_username <username>
remote_password <password>
clientid <client_name>
try_private false
start_type automatic
topic # in

check out this topic for further details.

Thank you! I try it.

What should the ‘clientid’ be? Can it be anything? I’ve used ‘hassio’ but I get the following error when in MQTT.

starting version 3.2.2
1502536497: mosquitto version 1.4.12 (build date 2017-06-01 13:03:48+0000) starting
1502536497: Config loaded from /etc/mosquitto.conf.
1502536497: Opening ipv4 listen socket on port 1883.
1502536497: Opening ipv6 listen socket on port 1883.
1502536497: Warning: Mosquitto should not be run as root/administrator.
1502536497: Connecting bridge cloudmqtt (m11.cloudmqtt.com:11576)
1502536498: Socket error on client local.hassio, disconnecting.
1502536528: Connecting bridge cloudmqtt (m11.cloudmqtt.com:11576)
1502536528: Socket error on client local.hassio, disconnecting.

My BAD!!! I had the @#@#$%^%^ CloudMQTT address wrong! I had m11.cloudmqtt.com instead of m13.cloudmqtt.com even though I’d recorded the correct address in my network database. Argh. That’ll teach me for trying to do home automation at 1130 at night.