Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
blocks:server:advanced_server_configuration:mqtt [2025-01-09 13:24] mattias [Security] |
blocks:server:advanced_server_configuration:mqtt [2025-01-13 12:03] (current) mattias [Blocks Server Configuration File] |
||
---|---|---|---|
Line 136: | Line 136: | ||
</ | </ | ||
- | Read the manual for mosquitto_password to find out other options such as delete a user etc. Not if the -c option is being used, the file permissions must reset as mosquitto runs with limited permissions for security reasons. | + | Read the manual for mosquitto_password to find out other options such as delete a user etc. Note, if the -c option is being used the existing file is overwritten and the file permissions must reset as mosquitto runs with limited permissions for security reasons. |
mosquitto_password will throw a warning when adding user while the password file is owned by mosquitto, with this permissions and ownership only root and mosquitto can read the file and mosquitto cannot modify it. It is possible but currently not necessary to temporary change ownership back to root:root while adding new users to mosquitto. | mosquitto_password will throw a warning when adding user while the password file is owned by mosquitto, with this permissions and ownership only root and mosquitto can read the file and mosquitto cannot modify it. It is possible but currently not necessary to temporary change ownership back to root:root while adding new users to mosquitto. | ||
Line 172: | Line 172: | ||
If this section is missing in the config file, default settings is assumed for the broker. | If this section is missing in the config file, default settings is assumed for the broker. | ||
+ | |||
+ | |||
< | < | ||
mqtt: | mqtt: | ||
defaultBroker: | defaultBroker: | ||
address: localhost | address: localhost | ||
- | username: | + | username: |
- | password: pixi | + | password: pixi # Replace pixi with the password setup with your user. |
encryption: false # Set to true if secure connection (tls) is available. | encryption: false # Set to true if secure connection (tls) is available. | ||
port: 1883 # Default is 1883 if non-encypted and 8883 if encrypted | port: 1883 # Default is 1883 if non-encypted and 8883 if encrypted |