Save a Cuttlefish translation

This commit is contained in:
David Ansari 2024-08-15 15:00:09 +02:00
parent ba14b158af
commit b09f2d4da3
2 changed files with 3 additions and 16 deletions

View File

@ -232,6 +232,7 @@
##
# auth_mechanisms.1 = PLAIN
# auth_mechanisms.2 = AMQPLAIN
# auth_mechanisms.3 = ANONYMOUS
## The rabbitmq-auth-mechanism-ssl plugin makes it possible to
## authenticate a user based on the client's x509 (TLS) certificate.
@ -905,14 +906,8 @@
##
# mqtt.proxy_protocol = false
## Set the default user name and password used for anonymous connections (when client
## provides no credentials). Anonymous connections are highly discouraged!
##
# mqtt.default_user = guest
# mqtt.default_pass = guest
## Enable anonymous connections. If this is set to false, clients MUST provide
## credentials in order to connect. See also the mqtt.default_user/mqtt.default_pass
## credentials in order to connect. See also the anonymous_login_user/anonymous_login_pass
## keys. Anonymous connections are highly discouraged!
##
# mqtt.allow_anonymous = true

View File

@ -738,15 +738,7 @@ end}.
%% Setting this to a username will allow (anonymous) clients to connect and act as this
%% given user. For production environments, set this value to 'none'.
{mapping, "anonymous_login_user", "rabbit.anonymous_login_user",
[{datatype, [{enum, [none]}, string]}]}.
{translation, "rabbit.anonymous_login_user",
fun(Conf) ->
case cuttlefish:conf_get("anonymous_login_user", Conf) of
none -> none;
User -> list_to_binary(User)
end
end}.
[{datatype, [{enum, [none]}, binary]}]}.
{mapping, "anonymous_login_pass", "rabbit.anonymous_login_pass", [
{datatype, [tagged_binary, binary]}