Hi all,
I'm now using nginx for proxying http-bind to the xmpp server's http-bind and currently I have the following configured:
location /http-bind/ {
proxy_pass
http://xmpp1.demo.mila.com:5280/http-bind/; // or xmpp2, on each webserver should be a different one
proxy_buffering off;
tcp_nodelay on;
}
I encounter a lot of 504 Gateway timeouts and after googling I found this issue:
https://support.process-one.net/browse/EJAB-1544 (I use ejabberd as well)
Does anyone know if the configuration mentioned there is the best way? I changed now to the following:
location /http-bind/ {
proxy_pass
http://xmpp1.demo.mila.com:5280/http-bind/; // or xmpp2, on each webserver should be a different one
proxy_buffering off;
tcp_nodelay on;
proxy_read_timeout 120;
proxy_send_timeout 120;
proxy_connect_timeout 120;
}
I'm not quite sure if 120 is correct - maybe 70-80 would do it as well?
Also I'm unsure about proxy_buffering, tcp_nodelay and the other configurations mentioned in the linked issue:
proxy_buffer_size 8k;
proxy_buffers 8 32k;
proxy_busy_buffers_size 64k;
proxy_next_upstream off;
Would be cool if someone could share some hints :)
Thanks,
Michael