Add a role for Jitsi in Docker Compose
We need this role to follow the recommended deployment approach from https://jitsi.github.io/handbook/docs/devops-guide/devops-guide-docker/ This role enables us to keep our config and customizations separate from releases of the Compose setup the Jitsi project publishs.
This commit is contained in:
parent
78ee1382d5
commit
dbac5ede16
11 changed files with 462 additions and 0 deletions
46
roles/jitsi/templates/jitsi.env.j2
Normal file
46
roles/jitsi/templates/jitsi.env.j2
Normal file
|
|
@ -0,0 +1,46 @@
|
|||
# {{ ansible_managed }}
|
||||
# Only the settings differing from the defaults are set here.
|
||||
# Reference: {{ jitsi__base_dir }}/release/env.example and
|
||||
# https://jitsi.github.io/handbook/docs/devops-guide/devops-guide-docker
|
||||
|
||||
# Allow running `docker compose` by hand in {{ jitsi__base_dir }}.
|
||||
COMPOSE_PROJECT_NAME=jitsi
|
||||
COMPOSE_FILE={{ jitsi__compose_files | join(':') }}
|
||||
|
||||
CONFIG={{ jitsi__config_dir }}
|
||||
JITSI_IMAGE_VERSION={{ jitsi__version }}
|
||||
TZ={{ jitsi__timezone }}
|
||||
PUBLIC_URL=https://{{ jitsi__domain }}
|
||||
|
||||
HTTP_PORT=80
|
||||
HTTPS_PORT=443
|
||||
ENABLE_HTTP_REDIRECT=1
|
||||
ENABLE_LETSENCRYPT=1
|
||||
LETSENCRYPT_DOMAIN={{ jitsi__domain }}
|
||||
LETSENCRYPT_EMAIL={{ jitsi__letsencrypt_email }}
|
||||
LETSENCRYPT_ACME_SERVER=letsencrypt
|
||||
{% if jitsi__jvb_advertise_ips | length > 0 %}
|
||||
JVB_ADVERTISE_IPS={{ jitsi__jvb_advertise_ips | join(',') }}
|
||||
{% endif %}
|
||||
{% if jitsi__whiteboard %}
|
||||
|
||||
WHITEBOARD_COLLAB_SERVER_URL_BASE=http://whiteboard.meet.jitsi
|
||||
{% endif %}
|
||||
{% if jitsi__turn %}
|
||||
|
||||
TURN_CREDENTIALS={{ jitsi__turn_secret }}
|
||||
TURN_HOST={{ jitsi__domain }}
|
||||
TURN_PORT=3478
|
||||
TURN_TRANSPORT=udp,tcp
|
||||
TURNS_HOST={{ jitsi__domain }}
|
||||
TURNS_PORT=5349
|
||||
{% endif %}
|
||||
{% if jitsi__env | length > 0 %}
|
||||
|
||||
{% for key, value in jitsi__env.items() %}
|
||||
{{ key }}={{ value }}
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
|
||||
JICOFO_AUTH_PASSWORD={{ jitsi__jicofo_auth_password }}
|
||||
JVB_AUTH_PASSWORD={{ jitsi__jvb_auth_password }}
|
||||
Loading…
Reference in a new issue