Cannot find /etc/moquitto directory on homeassistant after Moquitto MQTT install

I installed Mosquitto MQTT via the supervisor AddOns in HomeAssistant. I want to create a bridge connection (following this thread) and it says to create an additional .conf file in /etc/mosquitto/conf.d/ directory

When I SSH into my HA device, there is no /etc/mosquitto directory. Yes when I view the logs for Moquitto on HA it shows that it’s loading from that directory. Is that in some container I don’t have access to ?

[20:10:36] INFO: Setup mosquitto configuration
[20:10:36] WARNING: SSL not enabled - No valid certs found!
[20:10:36] INFO: No local user available
[20:10:37] INFO: Initialize Hass.io Add-on services
[20:10:37] INFO: Initialize Home Assistant discovery
[20:10:37] INFO: Start Mosquitto daemon
1609819837: mosquitto version 1.6.3 starting
1609819837: Config loaded from /etc/mosquitto.conf.

You will need to put the .conf file in /share/mosquitto/

Yes I did as MartinB did. In the Mosquitto add-on Config I have:

customize:
  active: true
  folder: mosquitto

The Add-on has its own /etc/mosquitto.conf inside the container. After the save, it will now have the line:
include_dir /share/mosquitto

2 Likes

Thank you, yeah I kinda of surmised that from the docs here though it doesn’t explicitly say that is where custom config files (for anything) can go. I’ll see about making a PR on the readme. Thanks all!

edit actually it does say you can setup a custom config folder here but it wasn’t immediately obvious to me