mirror of
https://github.com/taigrr/nats.docs
synced 2025-01-18 04:03:23 -08:00
GitBook: [master] 82 pages modified
This commit is contained in:
committed by
gitbook-bot
parent
7e27f03c98
commit
b082996143
@@ -68,30 +68,30 @@ authorization {
|
||||
|
||||
Here's another example, where the `allow` and `deny` options are specified:
|
||||
|
||||
```
|
||||
```text
|
||||
authorization: {
|
||||
users = [
|
||||
{
|
||||
user: admin
|
||||
password: secret
|
||||
permissions: {
|
||||
publish: ">"
|
||||
subscribe: ">"
|
||||
}
|
||||
}
|
||||
{
|
||||
user: test
|
||||
password: test
|
||||
permissions: {
|
||||
publish: {
|
||||
deny: ">"
|
||||
},
|
||||
subscribe: {
|
||||
allow: "client.>"
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
users = [
|
||||
{
|
||||
user: admin
|
||||
password: secret
|
||||
permissions: {
|
||||
publish: ">"
|
||||
subscribe: ">"
|
||||
}
|
||||
}
|
||||
{
|
||||
user: test
|
||||
password: test
|
||||
permissions: {
|
||||
publish: {
|
||||
deny: ">"
|
||||
},
|
||||
subscribe: {
|
||||
allow: "client.>"
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user