Commit f81ab2ba authored by Rostislav Spinar's avatar Rostislav Spinar

Keeping mosquitto folder for each board

- acls file sets rights based on username
parent d07a3bbe
......@@ -91,12 +91,12 @@ sudo mosquitto_passwd -c /etc/mosquitto/passwd <user_name>
#### Create ACL file
* Add [ACL file](https://github.com/iqrfsdk/iot-starter-kit/blob/master/install/mosquitto/acls)
* Add [ACL file](https://github.com/iqrfsdk/iot-starter-kit/blob/master/install/rpi-board/mosquitto/acls)
to your /etc/mosquitto folder
#### Modify mosquitto configuration
* Include lines to enable authorization as in [configuration file](https://github.com/iqrfsdk/iot-starter-kit/blob/master/install/mosquitto/mosquitto.conf) to your /etc/mosquitto/mosquitto.conf file
* Include lines to enable authorization as in [configuration file](https://github.com/iqrfsdk/iot-starter-kit/blob/master/install/rpi-board/mosquitto/mosquitto.conf) to your /etc/mosquitto/mosquitto.conf file
* Restart MQTT broker
......@@ -108,7 +108,7 @@ sudo systemctl restart mosquitto.service
#### Modify mosquitto configuration
* Include lines to enable websocket as in [configuration file](https://github.com/iqrfsdk/iot-starter-kit/blob/master/install/mosquitto/mosquitto.conf) to your /etc/mosquitto/mosquitto.conf file
* Include lines to enable websocket as in [configuration file](https://github.com/iqrfsdk/iot-starter-kit/blob/master/install/rpi-board/mosquitto/mosquitto.conf) to your /etc/mosquitto/mosquitto.conf file
* Restart MQTT broker
......
user pi
topic write Iqrf/DpaRequest
topic write Iqrf/DpaResponse
......@@ -56,12 +56,12 @@ sudo mosquitto_passwd -c /etc/mosquitto/passwd <user_name>
#### Create ACL file
* Add [ACL file](https://github.com/iqrfsdk/iot-starter-kit/blob/master/install/mosquitto/acls)
* Add [ACL file](https://github.com/iqrfsdk/iot-starter-kit/blob/master/install/up-board/mosquitto/acls)
to your /etc/mosquitto folder
#### Modify mosquitto configuration
* Include lines to enable authorization as in [configuration file](https://github.com/iqrfsdk/iot-starter-kit/blob/master/install/mosquitto/mosquitto.conf) to your /etc/mosquitto/mosquitto.conf file
* Include lines to enable authorization as in [configuration file](https://github.com/iqrfsdk/iot-starter-kit/blob/master/install/up-board/mosquitto/mosquitto.conf) to your /etc/mosquitto/mosquitto.conf file
* Restart MQTT broker
......@@ -73,7 +73,7 @@ sudo systemctl restart mosquitto.service
#### Modify mosquitto configuration
* Include lines to enable websocket as in [configuration file](https://github.com/iqrfsdk/iot-starter-kit/blob/master/install/mosquitto/mosquitto.conf) to your /etc/mosquitto/mosquitto.conf file
* Include lines to enable websocket as in [configuration file](https://github.com/iqrfsdk/iot-starter-kit/blob/master/install/up-board/mosquitto/mosquitto.conf) to your /etc/mosquitto/mosquitto.conf file
* Restart MQTT broker
......
# Place your local configuration in /etc/mosquitto/conf.d/
#
# A full description of the configuration file is at
# /usr/share/doc/mosquitto/examples/mosquitto.conf.example
pid_file /var/run/mosquitto.pid
persistence true
persistence_location /var/lib/mosquitto/
# Adding support for websockets
listener 1883
listener 9001
protocol websockets
# Adding support for authorization
password_file /etc/mosquitto/passwd
acl_file /etc/mosquitto/acls
allow_anonymous false
log_dest file /var/log/mosquitto/mosquitto.log
include_dir /etc/mosquitto/conf.d
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment