This repository was archived by the owner on Dec 4, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsrv.conf
More file actions
52 lines (47 loc) · 1.38 KB
/
srv.conf
File metadata and controls
52 lines (47 loc) · 1.38 KB
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# We will have one main root account and two customer accounts for reference.
accounts: {
root: {
users = [ {user: root, password: s3cr3t!} ]
exports = [
# To send requests.
# The second token is the account.
{
stream: "req.*",
# This enforces they can only import their account.
account_token_position: 2,
# Can ignore, just locks down in server config mode.
accounts: [cust1, cust2],
},
# To receive the responses.
{
service: "$R.>",
# This allows quicker cleanup since we don't respond.
response_time: "1s",
# Can ignore, just locks down in server config mode.
accounts: [cust1, cust2],
}
# To send broadcast requests.
{
stream: "broadcast",
# Can ignore, just locks down in server config mode.
accounts: [cust1, cust2],
},
]
}
cust1: {
users = [ {user: u1, password: p1} ]
imports = [
{stream: {account: "root", subject:"req.cust1"}, to: "cosmonic.requests"}
{stream: {account: "root", subject:"broadcast"}, to: "cosmonic.all"}
{service: {account: "root", subject:"$R.>"}}
]
}
cust2: {
users = [ {user: u2, password: p2} ]
imports = [
{stream: {account: "root", subject:"req.cust2"}, to: "cosmonic.requests"}
{stream: {account: "root", subject:"broadcast"}, to: "cosmonic.all"}
{service: {account: "root", subject:"$R.>"}}
]
}
}