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

fix(self-check): respect path_prefix in web client self-check URLs

Fixes https://github.com/spantaleev/matrix-docker-ansible-deploy/issues/5051

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
pull/5008/merge
Slavi Pantaleev 14 часов назад
Родитель
Сommit
b942715469
6 измененных файлов: 11 добавлений и 9 удалений
  1. +0
    -3
      roles/custom/matrix-client-element/tasks/self_check.yml
  2. +2
    -0
      roles/custom/matrix-client-element/vars/main.yml
  3. +0
    -3
      roles/custom/matrix-client-fluffychat/tasks/self_check.yml
  4. +7
    -0
      roles/custom/matrix-client-fluffychat/vars/main.yml
  5. +0
    -3
      roles/custom/matrix-client-schildichat/tasks/self_check.yml
  6. +2
    -0
      roles/custom/matrix-client-schildichat/vars/main.yml

+ 0
- 3
roles/custom/matrix-client-element/tasks/self_check.yml Просмотреть файл

@@ -5,9 +5,6 @@

---

- ansible.builtin.set_fact:
matrix_client_element_url_endpoint_public: "{{ matrix_client_element_scheme }}://{{ matrix_client_element_hostname }}/config.json"

- name: Check Element Web
ansible.builtin.uri:
url: "{{ matrix_client_element_url_endpoint_public }}"


+ 2
- 0
roles/custom/matrix-client-element/vars/main.yml Просмотреть файл

@@ -5,3 +5,5 @@
---

matrix_client_element_embedded_pages_home_url: "{{ ('' if matrix_client_element_embedded_pages_home_path is none else 'home.html') }}"

matrix_client_element_url_endpoint_public: "{{ matrix_client_element_scheme }}://{{ matrix_client_element_hostname }}{{ matrix_client_element_path_prefix }}{% if matrix_client_element_path_prefix != '/' %}/{% endif %}config.json"

+ 0
- 3
roles/custom/matrix-client-fluffychat/tasks/self_check.yml Просмотреть файл

@@ -4,9 +4,6 @@

---

- ansible.builtin.set_fact:
matrix_client_fluffychat_url_endpoint_public: "{{ matrix_client_fluffychat_scheme }}://{{ matrix_client_fluffychat_hostname }}/"

- name: Check FluffyChat Web
ansible.builtin.uri:
url: "{{ matrix_client_fluffychat_url_endpoint_public }}"


+ 7
- 0
roles/custom/matrix-client-fluffychat/vars/main.yml Просмотреть файл

@@ -0,0 +1,7 @@
# SPDX-FileCopyrightText: 2025 Slavi Pantaleev
#
# SPDX-License-Identifier: AGPL-3.0-or-later

---

matrix_client_fluffychat_url_endpoint_public: "{{ matrix_client_fluffychat_scheme }}://{{ matrix_client_fluffychat_hostname }}{{ matrix_client_fluffychat_path_prefix }}{% if matrix_client_fluffychat_path_prefix != '/' %}/{% endif %}"

+ 0
- 3
roles/custom/matrix-client-schildichat/tasks/self_check.yml Просмотреть файл

@@ -6,9 +6,6 @@

---

- ansible.builtin.set_fact:
matrix_client_schildichat_url_endpoint_public: "{{ matrix_client_schildichat_scheme }}://{{ matrix_client_schildichat_hostname }}/config.json"

- name: Check SchildiChat Web
ansible.builtin.uri:
url: "{{ matrix_client_schildichat_url_endpoint_public }}"


+ 2
- 0
roles/custom/matrix-client-schildichat/vars/main.yml Просмотреть файл

@@ -5,3 +5,5 @@
---

matrix_client_schildichat_embedded_pages_home_url: "{{ ('' if matrix_client_schildichat_embedded_pages_home_path is none else 'home.html') }}"

matrix_client_schildichat_url_endpoint_public: "{{ matrix_client_schildichat_scheme }}://{{ matrix_client_schildichat_hostname }}{{ matrix_client_schildichat_path_prefix }}{% if matrix_client_schildichat_path_prefix != '/' %}/{% endif %}config.json"

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