1
0
mirror of https://github.com/taigrr/nats.docs synced 2025-01-18 04:03:23 -08:00

Update queues.md

This commit is contained in:
Waldemar Quevedo
2019-12-11 22:38:16 +01:00
committed by GitHub
parent ea7e6a4d5f
commit 3c119265b0

View File

@@ -131,6 +131,16 @@ A Queue Permission can be defined with the syntax `<subject> <queue>`, where the
```hcl
allow = ["foo v1", "foo v2.*"]
```
The full wildcard can also be used, for example the following would prevent plain subscriptions on `bar` but allow the client to join any queue:
```
allow = ["bar >"]
```
Permissions for Queue Subscriptions can be combined with plain subscriptions as well though, for example you could allow plain subscriptions on `foo` but constrain the queues to which a client can join, as well a preventing any service from using a queue subscription with the name `*.prod`:
```text
users = [
{
@@ -144,5 +154,4 @@ users = [
}
}
]
allow: [foo, foo v1]
```