diff --git a/flashmq/data/etc/acl_file b/flashmq/data/etc/acl_file new file mode 100644 index 0000000..19ae98b --- /dev/null +++ b/flashmq/data/etc/acl_file @@ -0,0 +1,5 @@ +user admin +topic readwrite # + +user guest +topic read test/# diff --git a/flashmq/data/etc/flashmq.conf b/flashmq/data/etc/flashmq.conf index c998b14..0592909 100644 --- a/flashmq/data/etc/flashmq.conf +++ b/flashmq/data/etc/flashmq.conf @@ -1,8 +1,14 @@ -# https://www.flashmq.org/documentation/config-file/ +# +# - https://www.flashmq.org/documentation/config-file/ +# - https://mosquitto.org/man/mosquitto-conf-5.html +# log_file /var/log/flashmq/flashmq.log storage_dir /var/lib/flashmq +#mosquitto_password_file /etc/flashmq/password_file +#mosquitto_acl_file /etc/flashmq/acl_file + listen { protocol mqtt inet_protocol ip4 diff --git a/flashmq/data/etc/password_file b/flashmq/data/etc/password_file new file mode 100644 index 0000000..d731ef2 --- /dev/null +++ b/flashmq/data/etc/password_file @@ -0,0 +1,5 @@ +# mosquitto_passwd -b password_file admin admin +admin:$7$101$yQfAUAV+EF5tPGU2$RsXDGYVkMmrLLlaBywBKWfk6QN0yvoYtnJAGUNzWkSa25pj8e3d+zMJg5SL1Slv31ij3xO8qoS1DY+Lw/3JH4Q== + +# mosquitto_passwd -b password_file guest guest +guest:$7$101$abZWwRyjhx7OmPLs$VZKf6T0t1UHFRM46bHqAyA8EmKkVvTKOG+knrLftFg7FQzopNMKtolsHueOziVRQT/F+ZndPNaxA3S5JwdjAZw==