[__jitsi_meet_domain] Simplify logic for secured domains

This commit is contained in:
evilham 2022-04-16 13:22:16 +02:00
parent fa37ede84f
commit 29cafd4f9a
Signed by untrusted user: evilham
GPG key ID: AE3EE30D970886BF

View file

@ -13,14 +13,8 @@ var config = {
domain: '${JITSI_HOST}', domain: '${JITSI_HOST}',
// When using authentication, domain for guest users. // When using authentication, domain for guest users.
$( if [ -n "${SECURED_DOMAINS}" ]; then cat<<EOF2 $( if [ -z "${SECURED_DOMAINS}" ]; then printf "// "
anonymousdomain: 'guest.${JITSI_HOST}', fi)anonymousdomain: 'guest.${JITSI_HOST}',
EOF2
else cat <<EOF2
// anonymousdomain: 'guest.example.com',
EOF2
fi
)
// Domain for authenticated users. Defaults to <domain>. // Domain for authenticated users. Defaults to <domain>.
// authdomain: '${JITSI_HOST}', // authdomain: '${JITSI_HOST}',