mirror of
https://gitcode.com/GitHub_Trending/ji/jitsi-meet.git
synced 2025-12-30 03:12:29 +00:00
* feat: Adds an example to convert a deployment to use jaas. * squash: Generates the daily asap token with expiration of 1 day. The default is 1 hour. * squash: Use local deployment UI with jaas, not 8x8.vc one. - We load config.js from 8x8.vc with the tenant, to allow release pinning to work. - We sed the vpass_cookie in the custom nginx conf as variables are not allowed in location matching. - The jaas-vars need to be global as it will overwrite config.js location and index html. * squash: Enables e2ee for the meetings. * squash: Bump node version check. * squash: Fix filename. * squash: Updates the readme. * squash: Checks whether node is installed. * squash: Fixes initial configuration. The jaas-vars is required to reload nginx, done by update-asap-daily script. * squash: More fixes of misspelled config file. * squash: Fixes serving the pub key.
34 lines
1.2 KiB
HTML
34 lines
1.2 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<script src='external_api.js' async></script>
|
|
<style>html, body, #jaas-container { height: 100%; }</style>
|
|
<script type="text/javascript">
|
|
function getRoomName(pathname) {
|
|
const contextRootEndIndex = pathname.lastIndexOf('/');
|
|
|
|
return pathname.substring(contextRootEndIndex + 1);
|
|
}
|
|
window.onload = () => {
|
|
const jaasJwt = <!--#include virtual="/jaas-jwt" -->;
|
|
const api = new JitsiMeetExternalAPI(
|
|
window.location.host, {
|
|
roomName: `${jaasJwt.tenant}/${getRoomName(window.location.pathname)}`,
|
|
parentNode: document.querySelector('#jaas-container'),
|
|
jwt: jaasJwt.token,
|
|
e2eeKey: jaasJwt.e2eeKey
|
|
});
|
|
api.addListener('videoConferenceJoined', () => {
|
|
if (jaasJwt.e2eeKey) {
|
|
console.info('Toggling e2ee on!')
|
|
api.executeCommand('toggleE2EE', true);
|
|
}
|
|
});
|
|
}
|
|
</script>
|
|
</head>
|
|
<body>
|
|
<div id="jaas-container" />
|
|
</body>
|
|
</html>
|