Open tristan-k opened 7 years ago
I use this configuration:
$rcmail_config['converse_xmpp_bosh_prebind_url']= function($args) {
return 'https://xmpp.domain.tld:5280/http-bind';
};
$rcmail_config['converse_xmpp_bosh_url']= function($args) {
return 'https://xmpp.domain.tld:5280/http-bind';
};
$rcmail_config['converse_xmpp_hostname']= function($args) {
return 'domain.tld';
};
$rcmail_config['converse_xmpp_username']= function($args) {
return $args['user'];
};
$rcmail_config['converse_xmpp_password']= function($args) {
return $args['pass'];
};
$rcmail_config['converse_jsfile'] = 'converse.nojquery.min.js';
$rcmail_config['converse_config'] = array(
'message_archiving' => 'roster',
'message_carbons' => true,
'csi_waiting_time' => 60
);
Please note that I had to hardcode converse_xmpp_hostname
in the config, as my XMPP server resides on a different host.
For the same reason, and because I also don't use a proxy, both instances of converse_xmpp_bosh*_url
have to be absolute URLs on my system. If it is located on the same host, or the roundcube webserver provides a proxy, it might not be necessary to use an absolute URL for converse_xmpp_bosh_url
and converse_xmpp_bosh_prebind_url
can point to localhost.
Generally your browser's JavaScript console can be helpful in debugging configuration issues, if the PHP server logs do not already contain clues.
Thanks for answering. Still no luck. My Prosody server is on the same host so I guess
$rcmail_config['converse_xmpp_bosh_prebind_url']= function($args) {
return 'http://localhost:61219/http-bind';
};
$rcmail_config['converse_xmpp_bosh_url']= function($args) {
return 'http://localhost:61219/http-bind';
should be fine. How would I have to configure converse_xmpp_hostname
then?
Do I have to copy the necesarry files to the root folder of converse
? Because converse.nojquery.min.js
is located at js/converse.nojquery.min.js
. Are the steps in the tutorial at https://github.com/devurandom/roundcube-converse.js-xmpp-plugin/blob/master/build/HOWTO.md just for customizing conversejs or is it obligatory for using the roundcube plugin?
The JavaScript console shows nothing, please have a look at https://mail.tristank.de/.
The build/HOWTO.md
is just for customising or updating converse.js.
The converse_xmpp_hostname
is the domain part of your JID. E.g. if the JID is tristank@tristank.de
, you set converse_xmpp_hostname
to tristank.de
. Using the $args['host']
variant works only if your IMAP server is also located at tristank.de
(i.e. it will not work if the IMAP server is named imap.tristank.de
or similar).
Can someone explain how to configure the plugin properly? As soon as I enable the plugin via
main.inc.php
and log in, Rouncube only display a blank page. I'm using the up-to-date fork from @devurandom at https://github.com/devurandom/roundcube-converse.js-xmpp-plugin/.