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

Make follow_redirects configurable when checking /.well-known/matrix/client

Discussed in #101 (Github Issue).
pull/432/head
Slavi Pantaleev 6 лет назад
Родитель
Сommit
8bcc9712d0
2 измененных файлов: 7 добавлений и 1 удалений
  1. +6
    -0
      roles/matrix-nginx-proxy/defaults/main.yml
  2. +1
    -1
      roles/matrix-nginx-proxy/tasks/self_check_well_known.yml

+ 6
- 0
roles/matrix-nginx-proxy/defaults/main.yml Просмотреть файл

@@ -184,6 +184,12 @@ matrix_nginx_proxy_ssl_protocols: "TLSv1.2 TLSv1.3"
# Controls whether the self-check feature should validate SSL certificates.
matrix_nginx_proxy_self_check_validate_certificates: true

# Controls whether redirects will be followed when checking the `/.well-known/matrix/client` resource.
#
# As per the spec (https://matrix.org/docs/spec/client_server/r0.6.0#well-known-uri), it shouldn't be,
# so we default to not following redirects as well.
matrix_nginx_proxy_self_check_well_known_matrix_client_follow_redirects: none

# By default, this playbook automatically retrieves and auto-renews
# free SSL certificates from Let's Encrypt.
#


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

@@ -6,7 +6,7 @@
- path: /.well-known/matrix/client
purpose: Client Discovery
cors: true
follow_redirects: none
follow_redirects: "{{ matrix_nginx_proxy_self_check_well_known_matrix_client_follow_redirects }}"
validate_certs: "{{ matrix_nginx_proxy_self_check_validate_certificates }}"

- block:


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