mirror of
https://github.com/gogrlx/nats-server.git
synced 2026-04-02 11:48:43 -07:00
Add in missing file
This commit is contained in:
30
test/configs/auths.conf
Normal file
30
test/configs/auths.conf
Normal file
@@ -0,0 +1,30 @@
|
||||
# Copyright 2016 Apcera Inc. All rights reserved.
|
||||
|
||||
# Our role based permissions.
|
||||
|
||||
# Admin can do anything.
|
||||
ADMIN = {
|
||||
publish = ">"
|
||||
subscribe = ">"
|
||||
}
|
||||
|
||||
# Can do requests on req.foo or req.bar, and subscribe to anything
|
||||
# that is a response, e.g. _INBOX.*
|
||||
#
|
||||
# Notice that authorization filters can be singletons or arrays.
|
||||
|
||||
REQUESTOR = {
|
||||
publish = ["req.foo", "req.bar"]
|
||||
subscribe = "_INBOX.*"
|
||||
}
|
||||
|
||||
# Default permissions if none presented. e.g. Joe below.
|
||||
DEFAULT_PERMISSIONS = {
|
||||
publish = "SANDBOX.*"
|
||||
subscribe = ["PUBLIC.>", "_INBOX.>"]
|
||||
}
|
||||
|
||||
# This is to benchmark pub performance.
|
||||
BENCH = {
|
||||
publish = "a"
|
||||
}
|
||||
Reference in New Issue
Block a user