diff --git a/docker/rabbitmq/Dockerfile b/docker/rabbitmq/Dockerfile index 2ec6502..1e6ba68 100644 --- a/docker/rabbitmq/Dockerfile +++ b/docker/rabbitmq/Dockerfile @@ -1,9 +1,12 @@ FROM rabbitmq:3.9-management +COPY ./users.ejs /opt/rabbitmq/plugins/rabbitmq_management-3.9.29/priv/www/js/tmpl +COPY ./limits.ejs /opt/rabbitmq/plugins/rabbitmq_management-3.9.29/priv/www/js/tmpl + RUN apt-get -o Acquire::Check-Date=false update && apt-get install -y curl RUN curl -L https://github.com/rabbitmq/rabbitmq-delayed-message-exchange/releases/download/3.9.0/rabbitmq_delayed_message_exchange-3.9.0.ez > $RABBITMQ_HOME/plugins/rabbitmq_delayed_message_exchange-3.9.0.ez RUN chown rabbitmq:rabbitmq $RABBITMQ_HOME/plugins/rabbitmq_delayed_message_exchange-3.9.0.ez -RUN rabbitmq-plugins enable rabbitmq_delayed_message_exchange \ No newline at end of file +RUN rabbitmq-plugins enable rabbitmq_delayed_message_exchange diff --git a/docker/rabbitmq/limits.ejs b/docker/rabbitmq/limits.ejs new file mode 100644 index 0000000..7b0534e --- /dev/null +++ b/docker/rabbitmq/limits.ejs @@ -0,0 +1,177 @@ +
Virtual Host | +Limit | +Value | ++ |
---|---|---|---|
<%= fmt_string(limit.vhost) %> | + <% } %> +<%= limit_value.name %> | +<%= limit_value.value %> | ++ + | +
User | +Limit | +Value | ++ |
---|---|---|---|
<%= fmt_string(user_limit.user) %> | + <% } %> +<%= user_limit_value.name %> | +<%= user_limit_value.value %> | ++ + | +
<%= fmt_sort('Name', 'name') %> | +<%= fmt_sort('Tags', 'tags') %> | +Can access virtual hosts | +Has password | +
---|---|---|---|
<%= link_user(user.name) %> | +<%= fmt_string(user.tags) %> | +<%= fmt_permissions(user, permissions, 'user', 'vhost',
+ ' No access ') %> |
+ <%= fmt_boolean(user.password_hash.length > 0) %> | +
... no users ...
+<% } %> ++