|
|
@@ -1472,9 +1472,14 @@ end}.
|
|
|
{datatype, string}
|
|
|
]}.
|
|
|
|
|
|
-{mapping, "listener.ws.$name.verify_protocol_header", "emqx.listeners", [
|
|
|
- {default, on},
|
|
|
- {datatype, flag}
|
|
|
+{mapping, "listener.ws.$name.fail_if_no_subprotocol", "emqx.listeners", [
|
|
|
+ {default, true},
|
|
|
+ {datatype, {enum, [true, false]}}
|
|
|
+]}.
|
|
|
+
|
|
|
+{mapping, "listener.ws.$name.supported_subprotocols", "emqx.listeners", [
|
|
|
+ {default, "mqtt, mqtt-v3, mqtt-v3.1.1, mqtt-v5"},
|
|
|
+ {datatype, string}
|
|
|
]}.
|
|
|
|
|
|
{mapping, "listener.ws.$name.proxy_protocol", "emqx.listeners", [
|
|
|
@@ -1638,9 +1643,14 @@ end}.
|
|
|
{datatype, string}
|
|
|
]}.
|
|
|
|
|
|
-{mapping, "listener.wss.$name.verify_protocol_header", "emqx.listeners", [
|
|
|
- {default, on},
|
|
|
- {datatype, flag}
|
|
|
+{mapping, "listener.wss.$name.fail_if_no_subprotocol", "emqx.listeners", [
|
|
|
+ {default, true},
|
|
|
+ {datatype, {enum, [true, false]}}
|
|
|
+]}.
|
|
|
+
|
|
|
+{mapping, "listener.wss.$name.supported_subprotocols", "emqx.listeners", [
|
|
|
+ {default, "mqtt, mqtt-v3, mqtt-v3.1.1, mqtt-v5"},
|
|
|
+ {datatype, string}
|
|
|
]}.
|
|
|
|
|
|
{mapping, "listener.wss.$name.access.$id", "emqx.listeners", [
|
|
|
@@ -1892,7 +1902,8 @@ end}.
|
|
|
{rate_limit, RateLimit(cuttlefish:conf_get(Prefix ++ ".rate_limit", Conf, undefined))},
|
|
|
{proxy_protocol, cuttlefish:conf_get(Prefix ++ ".proxy_protocol", Conf, undefined)},
|
|
|
{proxy_protocol_timeout, cuttlefish:conf_get(Prefix ++ ".proxy_protocol_timeout", Conf, undefined)},
|
|
|
- {verify_protocol_header, cuttlefish:conf_get(Prefix ++ ".verify_protocol_header", Conf, undefined)},
|
|
|
+ {fail_if_no_subprotocol, cuttlefish:conf_get(Prefix ++ ".fail_if_no_subprotocol", Conf, undefined)},
|
|
|
+ {supported_subprotocols, string:tokens(cuttlefish:conf_get(Prefix ++ ".supported_subprotocols", Conf, ""), ", ")},
|
|
|
{peer_cert_as_username, cuttlefish:conf_get(Prefix ++ ".peer_cert_as_username", Conf, undefined)},
|
|
|
{compress, cuttlefish:conf_get(Prefix ++ ".compress", Conf, undefined)},
|
|
|
{idle_timeout, cuttlefish:conf_get(Prefix ++ ".idle_timeout", Conf, undefined)},
|