diff --git a/etc/emqx.conf b/etc/emqx.conf index 54a3eff6f..65f7d8443 100644 --- a/etc/emqx.conf +++ b/etc/emqx.conf @@ -655,6 +655,15 @@ zone.external.max_mqueue_len = 1000 ## Value: false | true zone.external.mqueue_store_qos0 = true +## All the topics will be prefixed with the mountpoint path if this option is enabled. +## +## Variables in mountpoint path: +## - %c: clientid +## - %u: username +## +## Value: String +## zone.external.mountpoint = devicebound/ + ##-------------------------------------------------------------------- ## Internal Zone @@ -705,6 +714,15 @@ zone.internal.max_mqueue_len = 1000 ## Value: false | true zone.internal.mqueue_store_qos0 = true +## All the topics will be prefixed with the mountpoint path if this option is enabled. +## +## Variables in mountpoint path: +## - %c: clientid +## - %u: username +## +## Value: String +## zone.internal.mountpoint = cloudbound/ + ##-------------------------------------------------------------------- ## Listeners ##-------------------------------------------------------------------- diff --git a/priv/emqx.schema b/priv/emqx.schema index 9172e401e..dc2acdd0a 100644 --- a/priv/emqx.schema +++ b/priv/emqx.schema @@ -815,6 +815,10 @@ end}. {datatype, string} ]}. +{mapping, "zone.$name.mountpoint", "emqx.zones", [ + {datatype, string} +]}. + {translation, "emqx.zones", fun(Conf) -> Mapping = fun("retain_available", Val) -> {mqtt_retain_available, Val};