add prosody
This commit is contained in:
@@ -9,6 +9,7 @@
|
|||||||
})
|
})
|
||||||
(builtins.readDir ./diskLayouts);
|
(builtins.readDir ./diskLayouts);
|
||||||
ejabberd = ./ejabberd.nix;
|
ejabberd = ./ejabberd.nix;
|
||||||
|
prosody = ./prosody.nix;
|
||||||
dino = ./dino.nix;
|
dino = ./dino.nix;
|
||||||
xfce = ./xfce.nix;
|
xfce = ./xfce.nix;
|
||||||
};
|
};
|
||||||
|
|||||||
30
clanModules/prosody.nix
Normal file
30
clanModules/prosody.nix
Normal file
@@ -0,0 +1,30 @@
|
|||||||
|
{ config
|
||||||
|
, ...
|
||||||
|
}: {
|
||||||
|
services.prosody = {
|
||||||
|
enable = true;
|
||||||
|
modules.bosh = true;
|
||||||
|
extraModules = [ "private" "vcard" "privacy" "compression" "component" "muc" "pep" "adhoc" "lastactivity" "admin_adhoc" "blocklist" ];
|
||||||
|
virtualHosts = {
|
||||||
|
"${config.clanCore.machineName}.local" = {
|
||||||
|
domain = "${config.clanCore.machineName}.local";
|
||||||
|
enabled = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
extraConfig = ''
|
||||||
|
allow_unencrypted_plain_auth = true
|
||||||
|
'';
|
||||||
|
c2sRequireEncryption = false;
|
||||||
|
s2sRequireEncryption = false;
|
||||||
|
muc = [{
|
||||||
|
domain = "muc.${config.clanCore.machineName}.local";
|
||||||
|
maxHistoryMessages = 10000;
|
||||||
|
name = "${config.clanCore.machineName} Prosody";
|
||||||
|
}];
|
||||||
|
uploadHttp = {
|
||||||
|
domain = "upload.${config.clanCore.machineName}.local";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
# xmpp-server
|
||||||
|
networking.firewall.allowedTCPPorts = [ 5269 ];
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user