Skip to content

Commit

Permalink
xmpp: Fix enabling of BOSH as of MongooseIM 1.6
Browse files Browse the repository at this point in the history
Since MongooseIM version 1.6.0, the mod_bosh module needs to be enabled
via the ejabberd_cowboy listener option.

We still need to flesh out type information about the new listener
options, so this is only a temporary fix.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
  • Loading branch information
aszlig committed Mar 11, 2016
1 parent c327f66 commit f1076fd
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions xmpp.nix
Expand Up @@ -95,9 +95,12 @@ in {

c2s = mkC2S true ++ mkC2S false;

bosh = mkAddr "mod_bosh" {
cowboy = mkAddr "ejabberd_cowboy" {
port = 5280;
options.tls.flag = true;
options.modules = [
{ tuple = ["_" "/http-bind" { atom = "mod_bosh"; }]; }
];
};

s2s = mkAddr "ejabberd_s2s_in" {
Expand All @@ -110,7 +113,7 @@ in {
certfile = domain.ssl.privateKey.path;
};
};
in c2s ++ s2s ++ bosh) config.headcounter.vhosts) /* ++ [
in c2s ++ s2s ++ cowboy) config.headcounter.vhosts) /* ++ [
FIXME: ejabberd_service doesn't exist anymore in MongooseIM!
{ port = 5280;
Expand Down Expand Up @@ -246,7 +249,6 @@ in {
private.options.access.atom = "public";

bosh.enable = true;
bosh.options.port = 5280; # TODO: TLS and whatnot?

muc.enable = true;
muc.options = {
Expand Down

0 comments on commit f1076fd

Please sign in to comment.