Hello!
I was trying for a long time to set up the jitsi docker with an NGINX reverse proxy.
But for this I had to also proxy “location /http-bind” and “location /xmpp-websocket”. However these must be proxied to port 5280 (xmpp), but this port is not binded to the outside in the docker-compose file.
Why is this? Which I mean, why are ports 5222,5347,5280 as “expose” and not as “ports”?
Thanks
1 Like
So I manage to kind of solve this by defining my reverse proxy nginx as:
location / {
ssi on;
proxy_pass http://PUBLICIP:HTTPPORT;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_redirect off;
}
# xmpp websockets
location /xmpp-websocket {
proxy_pass http://PUBLICIP:HTTPPORT/xmpp-websocket;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header Host $host;
tcp_nodelay on;
}
so now my question is, why do I need “location /xmpp-websocket”? shouldn’t this redirect be correctly handeled by “localtion /” ?
1 Like