From ca61ea20b0a4fcc79862026623ec4f11d122a7e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sa=C3=BAl=20Ibarra=20Corretg=C3=A9?= Date: Mon, 18 Mar 2024 15:18:01 +0100 Subject: [PATCH] jibri: add ability to ignore certificate errors This is useful for testing without a valid TLS certificate. --- jibri.yml | 1 + jibri/rootfs/defaults/jibri.conf | 11 +++++++++++ 2 files changed, 12 insertions(+) diff --git a/jibri.yml b/jibri.yml index a0b4937..057a45e 100644 --- a/jibri.yml +++ b/jibri.yml @@ -23,6 +23,7 @@ services: - CHROMIUM_FLAGS - DISPLAY=:0 - ENABLE_STATS_D + - IGNORE_CERTIFICATE_ERRORS - JIBRI_WEBHOOK_SUBSCRIBERS - JIBRI_INSTANCE_ID - JIBRI_HTTP_API_EXTERNAL_PORT diff --git a/jibri/rootfs/defaults/jibri.conf b/jibri/rootfs/defaults/jibri.conf index 5881d01..ac357a8 100644 --- a/jibri/rootfs/defaults/jibri.conf +++ b/jibri/rootfs/defaults/jibri.conf @@ -141,6 +141,17 @@ jibri { "{{ join "\",\"" (splitList "," .Env.CHROMIUM_FLAGS) }}" ] } + {{ else if .Env.IGNORE_CERTIFICATE_ERRORS -}} + chrome { + flags = [ + "--use-fake-ui-for-media-stream", + "--start-maximized", + "--kiosk", + "--enabled", + "--autoplay-policy=no-user-gesture-required", + "--ignore-certificate-errors" + ] + } {{ end -}} {{ if .Env.ENABLE_STATS_D -}}