mirror of
https://github.com/postmannen/ctrl.git
synced 2025-01-18 21:59:30 +00:00
removed example for no longer existing relay messages
This commit is contained in:
parent
6f5aa78678
commit
af24bb46c0
1 changed files with 0 additions and 49 deletions
|
@ -1,49 +0,0 @@
|
||||||
# Relay configuration
|
|
||||||
|
|
||||||
Example config where we allow **ship1** to send a message to **ship2** relayed via **central**.
|
|
||||||
|
|
||||||
```json
|
|
||||||
port: 4222
|
|
||||||
|
|
||||||
authorization: {
|
|
||||||
users = [
|
|
||||||
{
|
|
||||||
# central
|
|
||||||
nkey: <central key here>
|
|
||||||
permissions: {
|
|
||||||
publish: {
|
|
||||||
allow: [">","errorCentral.>"]
|
|
||||||
}
|
|
||||||
subscribe: {
|
|
||||||
allow: [">","errorCentral.>"]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
{
|
|
||||||
# ship1
|
|
||||||
nkey: <ship1 key here>
|
|
||||||
permissions: {
|
|
||||||
publish: {
|
|
||||||
allow: ["central.>","errorCentral.>","ship1.>","ship2.central.REQRelay.EventACK"]
|
|
||||||
# deny: ["*.REQRelay.>"]
|
|
||||||
}
|
|
||||||
subscribe: {
|
|
||||||
allow: ["central.>","ship1.>","errorCentral.REQErrorLog.EventACK.reply","*.central.REQRelay.EventACK.reply"]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
{
|
|
||||||
# ship2
|
|
||||||
nkey: <ship2 key here>
|
|
||||||
permissions: {
|
|
||||||
publish: {
|
|
||||||
allow: ["central.>","errorCentral.>","ship2.>"]
|
|
||||||
}
|
|
||||||
subscribe: {
|
|
||||||
allow: ["central.>","ship2.>","errorCentral.REQErrorLog.EventACK.reply"]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
```
|
|
Loading…
Add table
Reference in a new issue