55f38141c5
This removes an unused letsencrypt dir bind mount for jitsi-meet web that was causing confusion (we run letsencrypt out of band and put the certs in the correct dir so we don't need this specific bind mount). We also remove the now unused config.js config file from the role. We stop managing the default nginx config and instead rely on the container provided template. To properly configure http redirects we set the ENABLE_HTTP_REDIRECT flag in the env var file. Finally we update the README file with a bit more info on how this all works. Change-Id: Iecb68c9855b5627d25f8bb586b0e6f366f1c80ab
61 lines
1.7 KiB
YAML
61 lines
1.7 KiB
YAML
- name: Create docker-compose dir
|
|
file:
|
|
name: /etc/jitsi-meet-docker
|
|
state: directory
|
|
mode: 0755
|
|
owner: root
|
|
group: root
|
|
- name: Copy docker-compose config
|
|
copy:
|
|
src: "jitsi-meet-docker/{{ docker_compose_file }}"
|
|
dest: /etc/jitsi-meet-docker/docker-compose.yaml
|
|
mode: 0644
|
|
owner: root
|
|
group: root
|
|
- name: Write env file
|
|
template:
|
|
src: "{{ docker_compose_env_file }}"
|
|
dest: /etc/jitsi-meet-docker/.env
|
|
- name: Ensure jitsi-meet volume directories exist
|
|
file:
|
|
state: directory
|
|
path: "/var/jitsi-meet/{{ item }}"
|
|
loop:
|
|
- web
|
|
- web/nginx
|
|
- web/nginx/site-confs
|
|
- defaults
|
|
- defaults/web
|
|
- defaults/web/nginx
|
|
|
|
# These files are interpreted by the container at startup and are templated
|
|
# using the frep tool. Ideally we'll keep the content in templates to a
|
|
# minumum and rely on upstream as much as possible.
|
|
- name: Write nginx meet config template
|
|
copy:
|
|
src: meet.conf
|
|
dest: /var/jitsi-meet/defaults/web/nginx/meet.conf
|
|
- name: Write settings-config.js config template
|
|
copy:
|
|
src: settings-config.js
|
|
dest: /var/jitsi-meet/defaults/web/settings-config.js
|
|
|
|
# This file appears to be consumed as is by the jitsi meet web process.
|
|
# No funny templating or replacement.
|
|
- name: Write interface config
|
|
copy:
|
|
src: interface_config.js
|
|
dest: /var/jitsi-meet/web/interface_config.js
|
|
|
|
- name: Run docker-compose pull
|
|
shell:
|
|
cmd: docker-compose pull
|
|
chdir: /etc/jitsi-meet-docker/
|
|
- name: Run docker-compose up
|
|
shell:
|
|
cmd: docker-compose up -d
|
|
chdir: /etc/jitsi-meet-docker/
|
|
- name: Run docker prune to cleanup unneeded images
|
|
shell:
|
|
cmd: docker image prune -f
|