Просмотр исходного кода

Implement feedback from PR #1931

pull/1931/head
teutat3s 3 лет назад
Родитель
Сommit
3632c158f3
Не найден GPG ключ соответствующий данной подписи Идентификатор GPG ключа: 18DAE600A6BBE705
3 измененных файлов: 1 добавлений и 13 удалений
  1. +0
    -1
      roles/matrix-base/tasks/setup_well_known.yml
  2. +1
    -3
      roles/matrix-base/templates/static-files/well-known/matrix-support.j2
  3. +0
    -9
      roles/matrix-nginx-proxy/tasks/setup_well_known.yml

+ 0
- 1
roles/matrix-base/tasks/setup_well_known.yml Просмотреть файл

@@ -43,4 +43,3 @@
mode: 0644
owner: "{{ matrix_user_username }}"
group: "{{ matrix_user_groupname }}"
when: matrix_homeserver_admin_contacts|length > 0

+ 1
- 3
roles/matrix-base/templates/static-files/well-known/matrix-support.j2 Просмотреть файл

@@ -1,9 +1,7 @@
#jinja2: lstrip_blocks: "True"
{
{% if matrix_homeserver_admin_contacts|length > 0 %}
"admins": {{ matrix_homeserver_admin_contacts|to_json }}
{% endif %}
{% if matrix_homeserver_support_url %},
"support_page": "{{ matrix_homeserver_support_url }}"
"support_page": "{{ matrix_homeserver_support_url|to_json }}"
{% endif %}
}

+ 0
- 9
roles/matrix-nginx-proxy/tasks/setup_well_known.yml Просмотреть файл

@@ -23,12 +23,3 @@
mode: 0644
owner: "{{ matrix_user_username }}"
group: "{{ matrix_user_groupname }}"

- name: Ensure Matrix /.well-known/matrix/support configured
template:
src: "{{ role_path }}/templates/well-known/matrix-support.j2"
dest: "{{ matrix_static_files_base_path }}/.well-known/matrix"
mode: 0644
owner: "{{ matrix_user_username }}"
group: "{{ matrix_user_groupname }}"
when: matrix_homeserver_admin_contacts|length > 0

Загрузка…
Отмена
Сохранить