Implement the relay channel and command for generating tokens
This commit is contained in:
@@ -4,12 +4,17 @@
|
||||
"Address": "127.0.0.1",
|
||||
"UseSSL": true
|
||||
},
|
||||
"Relay": {
|
||||
"Enabled": true,
|
||||
"Port": 13868,
|
||||
"Address": "127.0.0.1",
|
||||
"UseSSL": true
|
||||
},
|
||||
"Key": "key.pem",
|
||||
"Certificate": "cert.pem",
|
||||
"RedisSocket": "/tmp/redis.sock",
|
||||
"UsePassword": true,
|
||||
"ConnectOnCreate": false,
|
||||
"RelayPassword": "s",
|
||||
"Notifications": {
|
||||
"Highlight": true,
|
||||
"Connection": true,
|
||||
|
||||
1
conf/example/tokens.json
Normal file
1
conf/example/tokens.json
Normal file
@@ -0,0 +1 @@
|
||||
{}
|
||||
@@ -24,5 +24,6 @@
|
||||
"relay": "relay <add|del|list> [<relay> <host> <port> <user> <password>]",
|
||||
"network": "network <add|del|list> [<name> <address> <port> <ssl|plain> <sasl|ns|none>]",
|
||||
"provision": "provision <relay> <alias> [<network>]",
|
||||
"cmd": "cmd <relay> <user> <entity> <text ...>"
|
||||
"cmd": "cmd <relay> <user> <entity> <text ...>",
|
||||
"token": "token <add|del|list> [<key>] [<relay>]"
|
||||
}
|
||||
|
||||
7
conf/tokens.json
Normal file
7
conf/tokens.json
Normal file
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"a": {
|
||||
"hello": "9814a659-9241-4389-8569-8bb23c69aea5",
|
||||
"usage": "relay",
|
||||
"counter": "98375c39-c421-42a1-ab48-b566587513b9"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user