-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrabbitmq.config
33 lines (33 loc) · 1.67 KB
/
rabbitmq.config
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
[
{rabbit, [{auth_backends, [rabbit_auth_backend_internal, rabbit_auth_backend_ldap]}]},
{rabbitmq_auth_backend_ldap,
[ {servers, ["%LDAP_SERVER%"]},
{dn_lookup_bind, {"cn=rabbitmq,ou=services,dc=wot,dc=io", "%RABBITMQ_PASSWORD%"}},
{dn_lookup_attribute, "uid"},
{dn_lookup_base, "dc=wot,dc=io"},
{use_starttls, true},
{port, 389},
{timeout, 10000},
{log, false},
{vhost_access_query, {'or', [
{'in_group', "cn=rabbitmq-admins,ou=groups,dc=wot,dc=io"},
{'in_group', "cn=rabbitmq-readonly,ou=groups,dc=wot,dc=io"}
]}},
{resource_access_query,
{for, [{permission, configure, {in_group, "cn=rabbitmq-admins,ou=groups,dc=wot,dc=io"}},
{permission, write,
{for, [{resource, queue, {in_group, "cn=rabbitmq-admins,ou=groups,dc=wot,dc=io"}},
{resource, exchange, {constant, true}}]}},
{permission, read,
{for, [{resource, exchange, {'or', [
{'in_group', "cn=rabbitmq-admins,ou=groups,dc=wot,dc=io"},
{'in_group', "cn=rabbitmq-readonly,ou=groups,dc=wot,dc=io"}
]}},
{resource, queue, {constant, true}}]}}
]
}},
{tag_queries, [{administrator, {'in_group', "cn=rabbitmq-admins,ou=groups,dc=wot,dc=io"}},
{management, {constant, true}}]}
]
}
].