Browse Source

Pass JVB_AUTH_PASSWORD environment variable to make JVB startup happy

We define this password in the `sip-communicator.properties`
configuration file, so this is not needed for actually running JVB.

However, it does a (useless) safety check during container startup,
and we need to make that check happy.
pull/441/head
Slavi Pantaleev 5 years ago
parent
commit
14786071af
3 changed files with 9 additions and 0 deletions
  1. +7
    -0
      roles/matrix-jitsi/tasks/setup_jitsi_jvb.yml
  2. +1
    -0
      roles/matrix-jitsi/templates/jvb/env.j2
  3. +1
    -0
      roles/matrix-jitsi/templates/jvb/matrix-jitsi-jvb.service.j2

+ 7
- 0
roles/matrix-jitsi/tasks/setup_jitsi_jvb.yml View File

@@ -34,6 +34,13 @@
- logging.properties
when: matrix_jitsi_enabled|bool

- name: Ensure jitsi-jvb environment variables file created
template:
src: "{{ role_path }}/templates/jvb/env.j2"
dest: "{{ matrix_jitsi_jvb_base_path }}/env"
mode: 0640
when: matrix_jitsi_enabled|bool

- name: Ensure matrix-jitsi-jvb.service installed
template:
src: "{{ role_path }}/templates/jvb/matrix-jitsi-jvb.service.j2"


+ 1
- 0
roles/matrix-jitsi/templates/jvb/env.j2 View File

@@ -0,0 +1 @@
JVB_AUTH_PASSWORD={{ matrix_jitsi_jvb_auth_password }}

+ 1
- 0
roles/matrix-jitsi/templates/jvb/matrix-jitsi-jvb.service.j2 View File

@@ -14,6 +14,7 @@ ExecStartPre=-/usr/bin/docker rm matrix-jitsi-jvb
ExecStart=/usr/bin/docker run --rm --name matrix-jitsi-jvb \
--log-driver=none \
--network={{ matrix_docker_network }} \
--env-file={{ matrix_jitsi_jvb_base_path }}/env \
{% if matrix_jitsi_jvb_container_rtp_udp_host_bind_port %}
-p {{ matrix_jitsi_jvb_container_rtp_udp_host_bind_port }}:{{ matrix_jitsi_jvb_rtp_udp_port }}/udp \
{% endif %}


Loading…
Cancel
Save