Merge staging-next-21.05 into staging-21.05

This commit is contained in:
github-actions[bot] 2021-07-10 00:03:10 +00:00 committed by GitHub
commit 4cdb9a0cc3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 49 additions and 14 deletions

View File

@ -186,9 +186,10 @@ in
}
];
extraModules = [ "pubsub" ];
extraPluginPaths = [ "${pkgs.jitsi-meet-prosody}/share/prosody-plugins" ];
extraConfig = mkAfter ''
Component "focus.${cfg.hostName}"
component_secret = os.getenv("JICOFO_COMPONENT_SECRET")
Component "focus.${cfg.hostName}" "client_proxy"
target_address = "focus@auth.${cfg.hostName}"
'';
virtualHosts.${cfg.hostName} = {
enabled = true;
@ -254,6 +255,7 @@ in
+ optionalString cfg.prosody.enable ''
${config.services.prosody.package}/bin/prosodyctl register focus auth.${cfg.hostName} "$(cat /var/lib/jitsi-meet/jicofo-user-secret)"
${config.services.prosody.package}/bin/prosodyctl register jvb auth.${cfg.hostName} "$(cat ${videobridgeSecret})"
${config.services.prosody.package}/bin/prosodyctl mod_roster_command subscribe focus.${cfg.hostName} focus@auth.${cfg.hostName}
# generate self-signed certificates
if [ ! -f /var/lib/jitsi-meet.crt ]; then

View File

@ -8,6 +8,7 @@ import ./make-test-python.nix ({ pkgs, ... }: {
client = { nodes, pkgs, ... }: {
};
server = { config, pkgs, ... }: {
virtualisation.memorySize = 512;
services.jitsi-meet = {
enable = true;
hostName = "server";
@ -36,15 +37,9 @@ import ./make-test-python.nix ({ pkgs, ... }: {
server.wait_until_succeeds(
"journalctl -b -u jitsi-videobridge2 -o cat | grep -q 'Performed a successful health check'"
)
server.wait_until_succeeds(
"journalctl -b -u jicofo -o cat | grep -q 'connected .JID: focus@auth.server'"
)
server.wait_until_succeeds(
"journalctl -b -u prosody -o cat | grep -q 'Authenticated as focus@auth.server'"
)
server.wait_until_succeeds(
"journalctl -b -u prosody -o cat | grep -q 'focus.server:component: External component successfully authenticated'"
)
server.wait_until_succeeds(
"journalctl -b -u prosody -o cat | grep -q 'Authenticated as jvb@auth.server'"
)

View File

@ -0,0 +1,36 @@
{ lib, stdenv, fetchurl, dpkg, nixosTests }:
stdenv.mkDerivation rec {
pname = "jitsi-meet-prosody";
version = "1.0.5056";
src = fetchurl {
url = "https://download.jitsi.org/stable/${pname}_${version}-1_all.deb";
sha256 = "06qxa9h2ry92xrk2jklp76nv3sl8nvykdvsqmhn33lz6q6vmw2xr";
};
dontBuild = true;
unpackCmd = "${dpkg}/bin/dpkg-deb -x $src debcontents";
installPhase = ''
runHook preInstall
mkdir -p $out/share
mv usr/share/jitsi-meet/prosody-plugins $out/share/
runHook postInstall
'';
passthru.tests = {
single-node-smoke-test = nixosTests.jitsi-meet;
};
meta = with lib; {
description = "Prosody configuration for Jitsi Meet";
longDescription = ''
This package contains configuration for Prosody to be used with Jitsi Meet.
'';
homepage = "https://github.com/jitsi/jitsi-meet/";
license = licenses.asl20;
maintainers = teams.jitsi.members;
platforms = platforms.linux;
};
}

View File

@ -2,10 +2,10 @@
let
pname = "jicofo";
version = "1.0-690";
version = "1.0-756";
src = fetchurl {
url = "https://download.jitsi.org/stable/${pname}_${version}-1_all.deb";
sha256 = "1w5nz2p6scd7w0ac93vhxlk5i8in5160c0icwl27m4x4km9xf6al";
sha256 = "07qmxqp1llpn8kh590iz35zk17c2k4yg7i43nb2l0sfm40crpwfz";
};
in
stdenv.mkDerivation {

View File

@ -2,10 +2,10 @@
let
pname = "jitsi-videobridge2";
version = "2.1-416-g2f43d1b4";
version = "2.1-508-gb24f756c";
src = fetchurl {
url = "https://download.jitsi.org/stable/${pname}_${version}-1_all.deb";
sha256 = "0s9wmbba1nlpxaawzmaqg92882y5sfs2ws64w5sqvpi7n77hy54m";
sha256 = "0kjsm3k7chgrfvvqxkp8xdw6wfrs122j4h8gcvyvpf9lg51p199g";
};
in
stdenv.mkDerivation {

View File

@ -2,11 +2,11 @@
stdenv.mkDerivation rec {
pname = "jitsi-meet";
version = "1.0.4628";
version = "1.0.5056";
src = fetchurl {
url = "https://download.jitsi.org/jitsi-meet/src/jitsi-meet-${version}.tar.bz2";
sha256 = "1kw4byy6mvqk3qd5nk5raka1bl9jp0kniszq6j5kc8nz3jql4qdz";
sha256 = "0vmxy22zpgmvmg84y6rf9s8y3ann1xzhpaipz7fk9z4ykmkj5knw";
};
dontBuild = true;

View File

@ -19104,6 +19104,8 @@ in
jitsi-meet = callPackage ../servers/web-apps/jitsi-meet { };
jitsi-meet-prosody = callPackage ../misc/jitsi-meet-prosody { };
jitsi-videobridge = callPackage ../servers/jitsi-videobridge { };
kapowbang = callPackage ../servers/kapowbang { };