Aggiunta conf xmpp-bot per i canali Steam e lozibaldone
This commit is contained in:
parent
96762c1180
commit
4adf43fd0e
1 changed files with 79 additions and 0 deletions
79
config-xmpp-bot
Normal file
79
config-xmpp-bot
Normal file
|
@ -0,0 +1,79 @@
|
|||
{
|
||||
"logger": {
|
||||
"level": "debug",
|
||||
"file": {
|
||||
"active": false,
|
||||
"pattern": "%d %p %m",
|
||||
"path": "/var/log/xmpp-bot/",
|
||||
"filename": "xmpp-bot.log"
|
||||
},
|
||||
"console": {
|
||||
"active": false,
|
||||
"coloured": true
|
||||
},
|
||||
"stdout": {
|
||||
"active": true,
|
||||
"pattern": "%p %m"
|
||||
}
|
||||
},
|
||||
"webhooksListener": {
|
||||
"path": "/webhooks",
|
||||
"port": 15670,
|
||||
"ssl": {
|
||||
"port": 15671,
|
||||
"certPath": "certs/fullchain.pem",
|
||||
"keyPath": "certs/privkey.pem"
|
||||
},
|
||||
"users": [
|
||||
{
|
||||
"login": "roughnecks",
|
||||
"password": "sekret"
|
||||
}
|
||||
],
|
||||
"accessLog": {
|
||||
"active": true,
|
||||
"path": "/var/log/xmpp-bot/",
|
||||
"filename": "webhook.log"
|
||||
}
|
||||
},
|
||||
"xmppServer": {
|
||||
"service": "wss://woodpeckersnest.space:5281/xmpp-websocket"
|
||||
"domain": "woodpeckersnest.space",
|
||||
"username": "Ted",
|
||||
"password": "sekret",
|
||||
"resource": "xmpp-bot",
|
||||
"errorReply": "Oops, something went wrong :(",
|
||||
"rooms": [
|
||||
{
|
||||
"id": "steam@chat.woodpeckersnest.space",
|
||||
"password": null
|
||||
},
|
||||
{
|
||||
"id": "lozibaldone@groups.chat.sabatino.cloud",
|
||||
"password": null
|
||||
}
|
||||
]
|
||||
},
|
||||
"incomingWebhooks": [
|
||||
{
|
||||
"path": "/webhooks/roughnecks",
|
||||
"action": "send_xmpp_message"
|
||||
}
|
||||
],
|
||||
"xmppHooks": [
|
||||
{
|
||||
"room": "ted@woodpeckersnest.space",
|
||||
"action": "outgoing_webhook",
|
||||
"args": ["send_to_roughnecks"]
|
||||
}
|
||||
],
|
||||
"outgoingWebhooks": [
|
||||
{
|
||||
"code": "send_to_roughnecks",
|
||||
"url": "https://trigger.macrodroid.com/d26e0afa-b0170fb55664/fake",
|
||||
"timeout": 2000,
|
||||
"strictSSL": false,
|
||||
"contentType": "application/json"
|
||||
}
|
||||
]
|
||||
}
|
Loading…
Reference in a new issue