Personalizzazioni-BoT/config-xmpp-bot

116 lines
3.3 KiB
Text
Raw Normal View History

{
"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": {
2024-02-25 21:56:43 +01:00
"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
},
{
2024-02-25 21:56:43 +01:00
"id": "lozibaldone@conference.xmpp-it.net",
"password": null
},
{
"id": "service@chat.woodpeckersnest.space",
"password": null
},
{
"id": "xmpp-it@conference.xmpp-it.net",
"password": null
}
]
},
"incomingWebhooks": [
{
"path": "/webhooks/roughnecks",
"action": "send_xmpp_message"
2024-02-25 21:56:43 +01:00
},
{
"path": "/webhooks/kuma",
"action": "send_xmpp_template",
"args": {
"destination": "service@chat.woodpeckersnest.space",
"type": "groupchat"
},
"template": "${heartbeat.time}\r\n${msg}"
},
{
"path": "/webhooks/gitea",
"action": "send_xmpp_template",
"args": {
"destination": "xmpp-it@conference.xmpp-it.net",
"type": "groupchat"
},
"template": "Commit da: ${commits[0].committer.username} - Data: ${commits[0].timestamp} - Repository: ${repository.name} - Messaggio: ${commits[0].message}\r\n${compare_url}"
},
{
"path": "/webhooks/newrepo",
"action": "send_xmpp_template",
"args": {
"destination": "xmpp-it@conference.xmpp-it.net",
"type": "groupchat"
},
"template": "Repository ${repository.full_name} ${action}, visibilita': ${repository.owner.visibility}\r\n${repository.html_url}"
}
],
"xmppHooks": [
{
"room": "ted@woodpeckersnest.space",
"action": "outgoing_webhook",
"args": ["send_to_roughnecks"]
}
],
2024-02-25 21:56:43 +01:00
"outgoingWebhooks": [
{
"code": "send_to_roughnecks",
"url": "https://trigger.macrodroid.com/d26e0afa-b0170fb55664/fake",
"timeout": 2000,
"strictSSL": false,
2024-02-25 21:56:43 +01:00
"contentType": "application/json"
}
]
2024-02-25 21:56:43 +01:00
}