Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 084d7d65e0 | |||
| 62d571b0d7 | |||
| 97d5f4ed48 |
@@ -1,5 +1,9 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
## 0.5.8
|
||||||
|
|
||||||
|
- Fixed TLS access control bug
|
||||||
|
|
||||||
## 0.5.5
|
## 0.5.5
|
||||||
|
|
||||||
- Fixed logging issue
|
- Fixed logging issue
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
name: Visquitto
|
name: Visquitto
|
||||||
version: "0.5.5"
|
version: "0.5.8"
|
||||||
slug: visquitto
|
slug: visquitto
|
||||||
description: Second private Mosquitto broker for bitopa nodes
|
description: Second private Mosquitto broker for bitopa nodes
|
||||||
url: "https://gitea.viratak.com/bitopa/virarepo/src/branch/main/visquitto"
|
url: "https://gitea.viratak.com/bitopa/virarepo/src/branch/main/visquitto"
|
||||||
|
|||||||
+13
-10
@@ -42,8 +42,14 @@ persistence true
|
|||||||
persistence_location $DATA/
|
persistence_location $DATA/
|
||||||
max_queued_messages 8192
|
max_queued_messages 8192
|
||||||
|
|
||||||
plugin_load acl_file /usr/lib/mosquitto_acl_file.so
|
plugin_load passwd /usr/lib/mosquitto_password_file.so
|
||||||
plugin_load password_file /usr/lib/mosquitto_password_file.so
|
plugin_opt_password_file $PASSWD
|
||||||
|
|
||||||
|
plugin_load acl_plain /usr/lib/mosquitto_acl_file.so
|
||||||
|
plugin_opt_acl_file $DATA/acl_plain
|
||||||
|
|
||||||
|
plugin_load acl_tls /usr/lib/mosquitto_acl_file.so
|
||||||
|
plugin_opt_acl_file $DATA/acl_tls
|
||||||
|
|
||||||
include_dir $SHARE
|
include_dir $SHARE
|
||||||
|
|
||||||
@@ -51,10 +57,8 @@ include_dir $SHARE
|
|||||||
listener 1883
|
listener 1883
|
||||||
protocol mqtt
|
protocol mqtt
|
||||||
allow_anonymous false
|
allow_anonymous false
|
||||||
plugin_use password_file
|
plugin_use passwd
|
||||||
plugin_opt_password_file $PASSWD
|
plugin_use acl_plain
|
||||||
plugin_use acl_file
|
|
||||||
plugin_opt_acl_file $DATA/acl_plain
|
|
||||||
|
|
||||||
# TLS listener (host port 9993): client certificate required
|
# TLS listener (host port 9993): client certificate required
|
||||||
listener 8883
|
listener 8883
|
||||||
@@ -66,10 +70,8 @@ keyfile $CERTDIR/key.pem
|
|||||||
tls_version tlsv1.2
|
tls_version tlsv1.2
|
||||||
require_certificate true
|
require_certificate true
|
||||||
use_identity_as_username true
|
use_identity_as_username true
|
||||||
plugin_use password_file
|
plugin_use passwd
|
||||||
plugin_opt_password_file $PASSWD
|
plugin_use acl_tls
|
||||||
plugin_use acl_file
|
|
||||||
plugin_opt_acl_file $DATA/acl_tls
|
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
# plain ACL
|
# plain ACL
|
||||||
@@ -99,6 +101,7 @@ EOF
|
|||||||
cat > "$CONFIG/acl_tls" <<EOF
|
cat > "$CONFIG/acl_tls" <<EOF
|
||||||
# Default rule for every certificate client. %u is the certificate CN.
|
# Default rule for every certificate client. %u is the certificate CN.
|
||||||
pattern readwrite clients/%u/#
|
pattern readwrite clients/%u/#
|
||||||
|
pattern write cert/enroll/%u/renew
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
# ---- User customization in /share (created once, never overwritten) ----
|
# ---- User customization in /share (created once, never overwritten) ----
|
||||||
|
|||||||
Reference in New Issue
Block a user