mirror of
https://github.com/spantaleev/matrix-docker-ansible-deploy.git
synced 2025-06-25 18:57:50 +02:00
Relocate org.matrix.msc4143.rtc_foci setup to /.well-known/matrix/client to matrix-static-files instead of ugly patching
This commit is contained in:
@ -78,12 +78,6 @@
|
||||
group: "{{ matrix_user_groupname }}"
|
||||
when: matrix_element_call_enabled | bool
|
||||
|
||||
# Update the well-known client file for Element Call (adding RTC FOCI)
|
||||
- name: Update the well-known client file for Element Call
|
||||
ansible.builtin.include_tasks: "tasks/update_well_known_client.yml"
|
||||
when: matrix_element_call_enabled | bool
|
||||
|
||||
|
||||
# Create .well-known/element/element.json for Element Call
|
||||
- name: Create the well-known element.json file
|
||||
ansible.builtin.template:
|
||||
@ -96,4 +90,4 @@
|
||||
# Update Element Web config.json with Element Call settings
|
||||
- name: Update Element Web config.json
|
||||
ansible.builtin.include_tasks: "tasks/update_element_web_config.yml"
|
||||
when: matrix_element_call_enabled | bool
|
||||
when: matrix_element_call_enabled | bool
|
||||
|
@ -1,21 +0,0 @@
|
||||
---
|
||||
- name: Read the existing well-known client file
|
||||
ansible.builtin.slurp:
|
||||
path: "{{ matrix_base_data_path }}/static-files/public/.well-known/matrix/client"
|
||||
register: client_file_content
|
||||
|
||||
- name: Load the existing JSON content
|
||||
ansible.builtin.set_fact:
|
||||
client_json: "{{ client_file_content['content'] | b64decode | from_json }}"
|
||||
|
||||
- name: Update the existing well-known client file for Element Call (RTC FOCI)
|
||||
ansible.builtin.set_fact:
|
||||
updated_client_json: "{{ client_json | combine({'org.matrix.msc4143.rtc_foci': [{'type': 'livekit', 'livekit_service_url': matrix_jwt_service_url}]}, recursive=True) }}"
|
||||
|
||||
- name: Write the updated well-known client file
|
||||
ansible.builtin.copy:
|
||||
content: "{{ updated_client_json | to_nice_json }}"
|
||||
dest: "{{ matrix_base_data_path }}/static-files/public/.well-known/matrix/client"
|
||||
mode: '0644'
|
||||
owner: "{{ matrix_user_username }}"
|
||||
group: "{{ matrix_user_groupname }}"
|
Reference in New Issue
Block a user