Everything you must know to properly configure VerneMQ
Every VerneMQ node has to be configured as the default configuration probably does not match your needs. Depending on the installation method and chosen platform the configuration file
vernemq.confresides at different locations. If VerneMQ was installed through a Linux package the default location for the configuration file is
- A single setting is handled on one line.
- Lines are structured
Key = Value
- Any line starting with # is a comment, and will be ignored.
You certainly want to try out VerneMQ right away. To just check the broker without configured authentication for now, you can allow anonymous access:
allow_anonymous = on
By default the
vmq_aclauthorization plugin is enabled and configured to allow publishing and subscribing to any topic (basically allowing everything), check the section on file-based authorization for more information.
allow_anonymous=oncompletely disables authentication in the broker and plugin authentication hooks are never called! Find the details on all the authentication hooks here. In a production system you should configure
vmq_aclto be less permissive or configure some other plugin to handle authorization.