Hi
I’ve installed Openfire 3.6.4 on Ubuntu. There’s a frontend NGinx with the following configuration -
server {
listen 8080;
server_name localhost;
l location /tomcat {
proxy_pass http://localhost:8081/;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
}
location /metajack {
proxy_pass http://bosh.metajack.im:5280/xmpp-httpbind/;
}
location /http-bind {
proxy_pass http://localhost:7070/http-bind/;
}
The following Javascript code connects to Openfire -
//Connect handler
login_connect: **function(e){ **
conn.connect(user,pass,
dojo.publish(
}
connection=null;
dojo.publish(
}
});
}
When I point jabberurl to metajack url, it logs in perfectly.
When I try to connect to my local openfire server, it returns to status CONNFAIL,DISCONNECTING and then DISCONNECTED.
What I might be doing wrong here?
Thanks
‘disconnected’);
else if(status===Strophe.Status.DISCONNECTED){
‘connected’,[ user]);
**if(status===Strophe.Status.CONNECTED){ **
this.message=status;
function(status){
var pass=this.login_password.value
var user=this.login_username.value;
var conn=new Strophe.Connection(this.jabberurl);