~/Projects/folotoy-server-self-hosting
git clone https://code.lsong.org/folotoy-server-self-hosting
Commit
- Commit
- 8d7e43e9d2421188f2611fc74f9e74f1ad5ae85f
- Author
- Le Wang <[email protected]>
- Date
- 2023-10-24 15:12:10 +0800 +0800
- Diffstat
mosquitto/acl.conf | 8 ++++++++ mosquitto/mosquitto.conf | 7 ++++---
add acl
diff --git a/mosquitto/acl.conf b/mosquitto/acl.conf new file mode 100644 index 0000000000000000000000000000000000000000..485ce57ef894f0955cafca67b582b257995d17b2 --- /dev/null +++ b/mosquitto/acl.conf @@ -0,0 +1,8 @@ +user folotoy +topic readwrite /user/folotoy/# + +pattern read /user/folotoy/%u/thing/command/call +pattern read /user/folotoy/%u/thing/command/postAck + +pattern write /user/folotoy/%u/thing/command/callAck +pattern write /user/folotoy/%u/thing/event/post \ No newline at end of file diff --git a/mosquitto/mosquitto.conf b/mosquitto/mosquitto.conf index b5efcf642eb11adaec428380f5dcfca74663bc0c..53ba1fc1bd5c9ea39577342fdf50337e8482dcdc 100644 --- a/mosquitto/mosquitto.conf +++ b/mosquitto/mosquitto.conf @@ -1,5 +1,6 @@ persistence true persistence_location /mosquitto/data/ -log_dest file /mosquitto/log/mosquitto.log +log_dest stdout -allow_anonymous true +allow_anonymous false -#password_file /mosquitto/config/passwd \ No newline at end of file +acl_file /mosquitto/config/acl.conf +password_file /mosquitto/config/passwd \ No newline at end of file