diff options
| author | Daniil Fedotov <dfedotov@pivotal.io> | 2016-01-22 15:47:01 +0000 |
|---|---|---|
| committer | Daniil Fedotov <dfedotov@pivotal.io> | 2016-01-28 15:49:05 +0000 |
| commit | dbe6b5f0a9de1e88cb482c2856da87692b920197 (patch) | |
| tree | 4935eccdc52e74d97e97d7a06d04979e669c8e31 /schema/rabbitmq.stomp.schema | |
| parent | eae87229e6a115fe4d491cc4d878e4257a81215a (diff) | |
| download | rabbitmq-server-git-dbe6b5f0a9de1e88cb482c2856da87692b920197.tar.gz | |
Cuttlefish schema for default config
Diffstat (limited to 'schema/rabbitmq.stomp.schema')
| -rw-r--r-- | schema/rabbitmq.stomp.schema | 90 |
1 files changed, 90 insertions, 0 deletions
diff --git a/schema/rabbitmq.stomp.schema b/schema/rabbitmq.stomp.schema new file mode 100644 index 0000000000..5b40a9661a --- /dev/null +++ b/schema/rabbitmq.stomp.schema @@ -0,0 +1,90 @@ +% %% ---------------------------------------------------------------------------- +% %% RabbitMQ Stomp Adapter +% %% +% %% See http://www.rabbitmq.com/stomp.html for details +% %% ---------------------------------------------------------------------------- + +% {rabbitmq_stomp, +% [%% Network Configuration - the format is generally the same as for the broker + +% %% Listen only on localhost (ipv4 & ipv6) on a specific port. +% %% {tcp_listeners, [{"127.0.0.1", 61613}, +% %% {"::1", 61613}]}, + +{mapping, "stomp.listener.tcp.$name", "rabbitmq_stomp.tcp_listeners",[ + {default, 61613}, + {datatype, [integer, ip]}, + {include_default, "all"} +]}. + +{translation, "rabbitmq_stomp.tcp_listeners", +fun(Conf) -> + Settings = cuttlefish_variable:filter_by_prefix("stomp.listener.tcp", Conf), + [ V || {_, V} <- Settings ] +end}. + +{mapping, "stomp.listener.ssl.$name", "rabbitmq_stomp.ssl_listeners",[ + {default, 61614}, + {datatype, [integer, ip]}, + {include_default, "all"} +]}. + +{translation, "rabbitmq_stomp.ssl_listeners", +fun(Conf) -> + Settings = cuttlefish_variable:filter_by_prefix("stomp.listener.ssl", Conf), + [ V || {_, V} <- Settings ] +end}. + +% %% Number of Erlang processes that will accept connections for the TCP +% %% and SSL listeners. +% %% +% %% {num_tcp_acceptors, 10}, +% %% {num_ssl_acceptors, 1}, + +{mapping, "stomp.num_acceptors.ssl", "rabbitmq_stomp.num_ssl_acceptors", [ + {default, 1}, + {datatype, integer} +]}. + +{mapping, "stomp.num_acceptors.tcp", "rabbitmq_stomp.num_tcp_acceptors", [ + {default, 10}, + {datatype, integer} +]}. + +% %% Additional SSL options + +% %% Extract a name from the client's certificate when using SSL. +% %% +% %% {ssl_cert_login, true}, + +{mapping, "stomp.ssl_cert_login", "rabbitmq_stomp.ssl_cert_login", + [{datatype, {enum, [true, false]}}]}. + +% %% Set a default user name and password. This is used as the default login +% %% whenever a CONNECT frame omits the login and passcode headers. +% %% +% %% Please note that setting this will allow clients to connect without +% %% authenticating! +% %% +% %% {default_user, [{login, "guest"}, +% %% {passcode, "guest"}]}, + +{mapping, "stomp.default_user", "rabbitmq_stomp.default_user.login", [ + {datatype, string} +]}. + +{mapping, "stomp.default_pass", "rabbitmq_stomp.default_user.passcode", [ + {datatype, string} +]}. + +% %% If a default user is configured, or you have configured use SSL client +% %% certificate based authentication, you can choose to allow clients to +% %% omit the CONNECT frame entirely. If set to true, the client is +% %% automatically connected as the default user or user supplied in the +% %% SSL certificate whenever the first frame sent on a session is not a +% %% CONNECT frame. +% %% +% %% {implicit_connect, true} +% ]}, +{mapping, "stomp.implicit_connect", "rabbitmq_stomp.implicit_connect", + [{datatype, {enum, [true, false]}}]}. |
