39 lines
768 B
Bash
Executable File
39 lines
768 B
Bash
Executable File
#!/bin/sh -eu
|
|
|
|
# Start
|
|
cat <<EOF
|
|
# Managed remotely, changes will be lost
|
|
|
|
# Jicofo HOCON configuration. See /usr/share/jicofo/jicofo.jar/reference.conf for
|
|
#available options, syntax, and default values.
|
|
jicofo {
|
|
xmpp: {
|
|
client: {
|
|
client-proxy: focus.${JITSI_HOST:?}
|
|
xmpp-domain: "${JITSI_HOST:?}"
|
|
domain: "auth.${JITSI_HOST:?}"
|
|
username: "focus"
|
|
password: "${JICOFO_AUTHPASSWORD:?}"
|
|
}
|
|
trusted-domains: [ "recorder.${JITSI_HOST:?}" ]
|
|
}
|
|
bridge: {
|
|
brewery-jid: "JvbBrewery@internal.auth.${JITSI_HOST:?}"
|
|
}
|
|
EOF
|
|
|
|
# Secured domains if needed
|
|
if [ "${SECURED_DOMAINS_STATE:?}" = "present" ]; then
|
|
cat <<EOF
|
|
|
|
authentication: {
|
|
enabled: true
|
|
type: XMPP
|
|
login-url: ${JITSI_HOST:?}
|
|
}
|
|
EOF
|
|
fi
|
|
|
|
# End
|
|
echo '}'
|