mirror of
https://github.com/gogrlx/nats-server.git
synced 2026-04-13 17:58:00 -07:00
It will be possible to set subjects permissions regardless of the presence of an authorization block. Signed-off-by: Ivan Kozlovic <ivan@synadia.com>
31 lines
560 B
Plaintext
31 lines
560 B
Plaintext
# Cluster Server A with Permissions
|
|
|
|
listen: 127.0.0.1:5222
|
|
http: 127.0.0.1:5223
|
|
|
|
cluster {
|
|
listen: 127.0.0.1:5244
|
|
|
|
authorization {
|
|
user: ruser
|
|
password: top_secret
|
|
timeout: 0.5
|
|
}
|
|
|
|
permissions {
|
|
import: "foo"
|
|
export: {
|
|
allow: "*"
|
|
deny: ["foo", "nats"]
|
|
}
|
|
}
|
|
|
|
# Routes are actively solicited and connected to from this server.
|
|
# Other servers can connect to us if they supply the correct credentials
|
|
# in their routes definitions from above.
|
|
|
|
routes = [
|
|
nats-route://ruser:top_secret@127.0.0.1:5246
|
|
]
|
|
}
|