What is Megaphone?

What is Megaphone?
The Megaphone project is about enhancing open source chat software. Specifically, the goal is to allow ejabberd to support 1,000,000 simultaneous users. See The Plan page for more details on how I plan to solve this problem. See the About this Blog page for more details on why I created this blog.

Saturday, December 10, 2011

Configurations

Last posting for the day.  This blog is beginning to look like a twitter feed.  At any rate...

Apache/proxy.conf:


IfModule mod_proxy.c>
        ProxyRequests Off


        <Proxy *>
                AddDefaultCharset off
                Order deny,allow
                Deny from all
                #Allow from .example.com
        </Proxy>


        ProxyVia On


        <Proxy http://localhost:5280/http-bind>
            Order allow,deny
            Allow from all
        </Proxy>


        <Proxy http://localhost:8888/http-bind>
            Order allow,deny
            Allow from all
        </Proxy>


        ProxyPass /http-bind    http://localhost:5280/http-bind
        ProxyPass /nxb          http://localhost:8888/http-bind
</IfModule>

JWChat/config.js (entry for NXB):



       {
            name: "NXB",
            description: "BOSH through node-xmpp-bosh",
            httpbase: "/nxb",
            type: "binding",
            servers_allowed: [SITENAME]
        },

ejabberd/ejabberd.cfg (relevant section for http-bind):



  {5280, ejabberd_http, [
         {request_handlers, [
             {["web"], mod_http_fileserver}
         ]},
         captcha,
         http_bind,
         http_poll,
         web_admin
  ]}
...
{ modules,
...
        {mod_http_bind, []},

No comments:

Post a Comment