diff options
author | Christian Pointner <equinox@spreadspace.org> | 2022-04-16 10:49:06 +0200 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2022-04-16 10:49:06 +0200 |
commit | d6adc2ea4861be9f281c5f7e54dd7eabc833ab1e (patch) | |
tree | e3c4277811328ff7c918a47db75a11923709abc6 /roles/apps/jitsi | |
parent | vm/guest: add support for virtiofs (diff) |
jitsi/meet: make default/min resolution configurable
Diffstat (limited to 'roles/apps/jitsi')
-rw-r--r-- | roles/apps/jitsi/meet/defaults/main.yml | 8 | ||||
-rw-r--r-- | roles/apps/jitsi/meet/templates/pod-spec.yml.j2 | 15 |
2 files changed, 23 insertions, 0 deletions
diff --git a/roles/apps/jitsi/meet/defaults/main.yml b/roles/apps/jitsi/meet/defaults/main.yml index fed1e7b7..4885d827 100644 --- a/roles/apps/jitsi/meet/defaults/main.yml +++ b/roles/apps/jitsi/meet/defaults/main.yml @@ -13,6 +13,14 @@ jitsi_meet_p2p_enable: yes jitsi_meet_timezone: Europe/Vienna +# jitsi_resolution: +# default: +# width: 1280 +# height: 720 +# min: +# width: 320 +# height: 180 + ### generate these using: openssl rand -hex 16 # jitsi_meet_secrets: # jicofo_component_secret: "" ### only needed for versions older than stable-5765-1 diff --git a/roles/apps/jitsi/meet/templates/pod-spec.yml.j2 b/roles/apps/jitsi/meet/templates/pod-spec.yml.j2 index f4c114ce..134fd9cb 100644 --- a/roles/apps/jitsi/meet/templates/pod-spec.yml.j2 +++ b/roles/apps/jitsi/meet/templates/pod-spec.yml.j2 @@ -183,6 +183,21 @@ containers: - name: TZ value: {{ jitsi_meet_timezone }} +{% if jitsi_resolution is defined %} + +{% if 'default' in jitsi_resolution %} + - name: RESOLUTION + value: "{{ jitsi_resolution.default.height }}" + - name: RESOLUTION_WIDTH + value: "{{ jitsi_resolution.default.width }}" +{% endif %} +{% if 'min' in jitsi_resolution %} + - name: RESOLUTION_MIN + value: "{{ jitsi_resolution.min.height }}" + - name: RESOLUTION_WIDTH_MIN + value: "{{ jitsi_resolution.min.width }}" +{% endif %} +{% endif %} - name: jvb image: "jitsi/jvb:{{ jitsi_meet_version }}" |