diff options
author | stuebinm | 2021-09-08 16:55:46 +0200 |
---|---|---|
committer | stuebinm | 2021-09-08 16:55:46 +0200 |
commit | df256e5341b3bce1390c7a70e15e7598e8a6fdde (patch) | |
tree | 498d6cfa6add24b9056467d533d01de28adc2fdc | |
parent | 2766f272fc80f5613a161b9bf6c64aa7d3eb961b (diff) |
playing around with jitsi
Diffstat (limited to '')
-rw-r--r-- | hosts/chaski/configuration.nix | 1 | ||||
-rw-r--r-- | hosts/chaski/services/jitsi.nix | 59 |
2 files changed, 60 insertions, 0 deletions
diff --git a/hosts/chaski/configuration.nix b/hosts/chaski/configuration.nix index b3feeec..428ac88 100644 --- a/hosts/chaski/configuration.nix +++ b/hosts/chaski/configuration.nix @@ -11,6 +11,7 @@ ./services/grafana.nix # ./services/workadventure.nix ./services/exneuland.nix + ./services/jitsi.nix ./services/uplcg.nix ]; diff --git a/hosts/chaski/services/jitsi.nix b/hosts/chaski/services/jitsi.nix new file mode 100644 index 0000000..d6f398b --- /dev/null +++ b/hosts/chaski/services/jitsi.nix @@ -0,0 +1,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 ]; + }; + }; + + +} |