Relocate /.well-known/element/element.json setup to matrix-static-files, instead of ugly patching from the Element Call role

This commit is contained in:
Slavi Pantaleev
2024-11-21 19:32:15 +02:00
parent 3f52cec25c
commit 252ca52f60
6 changed files with 83 additions and 23 deletions

View File

@ -77,12 +77,3 @@
owner: "{{ matrix_user_username }}"
group: "{{ matrix_user_groupname }}"
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:
src: "{{ role_path }}/templates/well_known_element.json.j2"
dest: "{{ matrix_base_data_path }}/static-files/public/.well-known/element/element.json"
mode: '0644'
owner: "{{ matrix_user_username }}"
group: "{{ matrix_user_groupname }}"

View File

@ -1,5 +0,0 @@
{
"call": {
"widget_url": "https://{{ matrix_element_call_hostname }}"
}
}