# {{ ansible_managed }}
jicofo {

  authentication {
    enabled = {{ (jitsi_auth == 'sso' or jitsi_auth == 'ldap') | ternary('true', 'false') }}
    type = {{ (jitsi_auth == 'ldap') | ternary('XMPP', 'SHIBBOLETH') }}
  }

  bridge {
    brewery-jid = "JvbBrewery@internal.{{ jitsi_auth_domain }}"
  }

  jibri {
    brewery-jid = "JibriBrewery@internal.{{ jitsi_auth_domain }}"
  }

{% if jitsi_jigasi %}
  jigasi {
    brewery-jid = "JigasiBrewery@internal.{{ jitsi_auth_domain }}"
  }
{% endif %}

  xmpp {
    client {
      domain = {{ jitsi_auth_domain }}
      xmpp-domain = {{ jitsi_domain }}
      username = {{ jitsi_jicofo_xmpp_user }}
      password = "{{ jitsi_jicofo_xmpp_pass }}"
      client-proxy = focus.{{ jitsi_domain }}
    }
  }
}
