Jibri installation et configuration

This commit is contained in:
Samuel Trégouët
2021-04-28 15:43:34 +00:00
committed by Antoine Ouvrard
parent e13e25b1de
commit 81f81beb10
19 changed files with 533 additions and 34 deletions
@@ -0,0 +1,41 @@
chrome.runtime.onInstalled.addListener(function() {
chrome.storage.managed.get("forcedCookies", managedItems => {
if (!managedItems.hasOwnProperty('forcedCookies')) {
return;
}
for (const item of managedItems.forcedCookies) {
chrome.cookies.set({
url: `https://${item.domain}/`,
domain: item.domain,
name: item.name,
value: item.value
});
}
})
// temp hack because loading config from managed policies seems too slow
const forcedCookies = [
{
domain: "{{ jitsi_server_host }}",
name: "rgpd",
value: "nothing"
},
{% for host in cookies_dns|default([]) %}
{
domain: "{{ host }}",
name: "rgpd",
value: "nothing"
},
{% endfor %}
];
for (const item of forcedCookies) {
chrome.cookies.set({
url: `https://${item.domain}/`,
domain: item.domain,
name: item.name,
value: item.value
});
}
});