This repository has been archived on 2023-11-11. You can view files and clone it, but cannot push or open issues or pull requests.
vxmppb/servers/openfire.js
stephen da3390bc89
Creating files for prosidy, and openfire
#20
Moved ejabberd to it's own file as well.
2022-06-02 21:48:12 -04:00

30 lines
977 B
JavaScript

const createRoom = {
method: 'POST',
// This requires to install a plugin! Please check list on openfire
// admin dashboard. Search for HTTP API
url: xmpp_api_url + '/plugins/restapi/v1/chatrooms',
headers: {
'Content-Type': 'application/json',
Authorization: xmpp_auth
},
body: {
options: {
roomName: xmpp_muc_name,
naturalName: xmpp_muc_name,
description: "Secure channel generated by https://vxmppb.tk",
subject: "Secure channel generated by https://vxmppb.tk",
persistent: "false",
publicRoom: "false",
registrationEnabled: "false",
canOccupantsChangeSubject: "false",
membersOnly: "true",
moderated: "true",
members: {
// Member!? MEMBER?!? Ooo ooo! Member?!
"member": [
config.friends
]
},
}
}
}