blob: d6f398b5618fb203802878a0278f156e8724cb61 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
{config, pkgs, ...}:
with pkgs.luaPackages;
with pkgs;
let extraLua = import ../../../../playground/jitsi/test.nix;
in
{
services.jitsi-meet = {
enable = true;
hostName = "jitsi.stuebinm.eu";
config = {
enableWelcomePage = true;
prejoinPageEnabled = true;
};
interfaceConfig = {
SHOW_JITSI_WATERMARK = false;
SHOW_WATERMARK_FOR_GUESTS = false;
};
};
services.jitsi-videobridge.openFirewall = true;
services.nginx.virtualHosts."api.jitsi.stuebinm.eu" = {
locations."/room-size" = {
proxyPass = pkgs.lib.mkForce
"http://jitsi.stuebinm.eu:5280/room-size?$args&domain=jitsi.stuebinm.eu";
extraConfig = ''
add_header Access-Control-Allow-Origin *;
'';
};
locations."/room-list" = {
proxyPass = "http://jitsi.stuebinm.eu:5280/room-list?domain=jitsi.stuebinm.eu";
extraConfig = ''
add_header Access-Control-Allow-Origin *;
'';
};
locations."/dashboard/".root =
pkgs.copyPathToStore ../../../../playground/jitsi/html;
enableACME = true;
forceSSL = true;
};
services.nginx.recommendedProxySettings = false;
services.prosody = {
#extraModules = [ "muc_size2" ];
extraModules = [ "jitsi_bundled" ];
extraPluginPaths = [
(pkgs.copyPathToStore ../../../../playground/jitsi/plugins)
];
package = pkgs.prosody.override {
withExtraLibs = with extraLua; [ basexx luajwtjitsi net-url ];
};
};
}
|