Implement the relay channel and command for generating tokens

This commit is contained in:
2019-03-18 21:01:28 +00:00
parent c05eb298ea
commit fc304d4b25
8 changed files with 203 additions and 2 deletions

View File

@@ -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
View File

@@ -0,0 +1 @@
{}

View File

@@ -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
View File

@@ -0,0 +1,7 @@
{
"a": {
"hello": "9814a659-9241-4389-8569-8bb23c69aea5",
"usage": "relay",
"counter": "98375c39-c421-42a1-ab48-b566587513b9"
}
}