main.ymlΒΆ

---
application_id: "web-app-jitsi"
entity_name: "{{ application_id | entity_name }}"

JITSI_WEB_SERVICE: "web"
JITSI_PROSODY_SERVICE: "prosody"
JITSI_JICOFO_SERVICE: "jicofo"
JITSI_JVB_SERVICE: "jvb"

JITSI_WEB_CONTAINER: "{{ lookup('config', application_id, 'services.' ~ JITSI_WEB_SERVICE ~ '.name') }}"
JITSI_PROSODY_CONTAINER: "{{ lookup('config', application_id, 'services.' ~ JITSI_PROSODY_SERVICE ~ '.name') }}"
JITSI_JICOFO_CONTAINER: "{{ lookup('config', application_id, 'services.' ~ JITSI_JICOFO_SERVICE ~ '.name') }}"
JITSI_JVB_CONTAINER: "{{ lookup('config', application_id, 'services.' ~ JITSI_JVB_SERVICE ~ '.name') }}"
JITSI_PROSODY_CONTAINER_ADDRESS: "{{ lookup('container_address', application_id, JITSI_PROSODY_SERVICE) }}"

JITSI_JVB_MEDIA_PORT: "{{ lookup('config', application_id, 'services.jitsi.ports.public.media') }}"

JITSI_PROSODY_XMPP_PORT: "{{ lookup('config', application_id, 'services.' ~ JITSI_PROSODY_SERVICE ~ '.ports.internal.xmpp') }}"
JITSI_PROSODY_COMPONENT_PORT: "{{ lookup('config', application_id, 'services.' ~ JITSI_PROSODY_SERVICE ~ '.ports.internal.component') }}"
JITSI_PROSODY_HTTP_PORT: "{{ lookup('config', application_id, 'services.' ~ JITSI_PROSODY_SERVICE ~ '.ports.internal.http') }}"

JITSI_PUBLIC_URL: "{{ lookup('tls', application_id, 'url.base') }}"

JITSI_VOLUMES_DIR: "{{ lookup('container', application_id, 'directories.volumes') }}"
JITSI_PROSODY_CONFIG_HOST_PATH: "{{ JITSI_VOLUMES_DIR }}prosody-config"
JITSI_PROSODY_PLUGINS_HOST_PATH: "{{ JITSI_VOLUMES_DIR }}prosody-plugins-custom"
JITSI_WEB_CONFIG_HOST_PATH: "{{ [JITSI_VOLUMES_DIR, 'config'] | path_join }}"
JITSI_INTERFACE_CONFIG_HOST_PATH: "{{ [JITSI_WEB_CONFIG_HOST_PATH, 'custom-interface_config.js'] | path_join }}"

JITSI_DESIGN_ENABLED: "{{ lookup('config', application_id, 'services.design.enabled') | bool }}"
JITSI_DESIGN_TITLE: "{{ lookup('design', application_id).title if JITSI_DESIGN_ENABLED | bool else false }}"
JITSI_DESIGN_MARK: "{{ application_id }} design"
JITSI_DESIGN_BRANDING_FILE: "infinito-design-branding.json"
JITSI_DESIGN_BRANDING_URL: "/{{ JITSI_DESIGN_BRANDING_FILE }}"
JITSI_DESIGN_TITLE_FILE: "infinito-design-title.html"
JITSI_DESIGN_FILES:
  - src: design/branding.json.j2
    dest: "{{ JITSI_DESIGN_BRANDING_FILE }}"
  - src: design/title.html.j2
    dest: "{{ JITSI_DESIGN_TITLE_FILE }}"
  - src: design/nginx.conf.j2
    dest: nginx-custom/infinito-design.conf

JITSI_OIDC_ENABLED: "{{ lookup('config', application_id, 'services.sso.enabled')  | bool }}"
JITSI_LDAP_ENABLED: "{{ lookup('config', application_id, 'services.ldap.enabled') | bool }}"

JITSI_XMPP_DOMAIN: "meet.jitsi"
JITSI_XMPP_AUTH_DOMAIN: "auth.meet.jitsi"
JITSI_XMPP_GUEST_DOMAIN: "guest.meet.jitsi"
JITSI_XMPP_MUC_DOMAIN: "muc.meet.jitsi"
JITSI_XMPP_INTERNAL_MUC_DOMAIN: "internal-muc.meet.jitsi"
JITSI_XMPP_RECORDER_DOMAIN: "recorder.meet.jitsi"

JITSI_JICOFO_COMPONENT_SECRET: "{{ lookup('config', application_id, 'secrets.credentials.jicofo_component_secret') }}"
JITSI_JICOFO_AUTH_PASSWORD: "{{ lookup('config', application_id, 'secrets.credentials.jicofo_auth_password') }}"
JITSI_JVB_AUTH_PASSWORD: "{{ lookup('config', application_id, 'secrets.credentials.jvb_auth_password') }}"
JITSI_JIGASI_XMPP_PASSWORD: "{{ lookup('config', application_id, 'secrets.credentials.jigasi_xmpp_password') }}"
JITSI_JIBRI_RECORDER_PASSWORD: "{{ lookup('config', application_id, 'secrets.credentials.jibri_recorder_password') }}"
JITSI_JIBRI_XMPP_PASSWORD: "{{ lookup('config', application_id, 'secrets.credentials.jibri_xmpp_password') }}"
JITSI_AUTH_TYPE: "{{ 'ldap' if (JITSI_LDAP_ENABLED and not JITSI_OIDC_ENABLED) else 'internal' }}"
JITSI_ENABLE_AUTH: "{{ JITSI_AUTH_TYPE != 'internal' }}"
JITSI_ENABLE_GUESTS: false