ejabberd - Comments for "Configure nginx as a tcp proxy for ejabberd" https://www.ejabberd.im/forum/25519/configure-nginx-tcp-proxy-ejabberd en That's what I'm using right https://www.ejabberd.im/forum/25519/configure-nginx-tcp-proxy-ejabberd#comment-66952 <p>That's what I'm using right now inside nginx to avoid direct exposure of ejabberd:</p> <div class="codeblock"><code>&nbsp;&nbsp;&nbsp; location /http-bind/ {&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # BOSH XMPP-HTTP<br />#&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; limit_except POST { deny all; }<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; proxy_pass <noindex><a href="http://localhost:5280;" title="http://localhost:5280;" rel="nofollow" >http://localhost:5280;</a></noindex><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; proxy_set_header Host $host;<br />&nbsp;&nbsp;&nbsp; }</code></div> <p>what do you think about it ?</p> Fri, 15 Jul 2016 09:52:28 +0000 andrea comment 66952 at https://www.ejabberd.im