Follow redirects for some well-known files
The Server spec says that redirects should be followed for `/.well-known/matrix/server`. So we follow them. The Client-Server specs doesn't mention redirects, so we don't follow redirects there.
This commit is contained in:
parent
433780384e
commit
25bdc10617
|
@ -6,6 +6,7 @@
|
||||||
- path: /.well-known/matrix/client
|
- path: /.well-known/matrix/client
|
||||||
purpose: Client Discovery
|
purpose: Client Discovery
|
||||||
cors: true
|
cors: true
|
||||||
|
follow_redirects: false
|
||||||
|
|
||||||
- block:
|
- block:
|
||||||
- set_fact:
|
- set_fact:
|
||||||
|
@ -13,6 +14,7 @@
|
||||||
path: /.well-known/matrix/server
|
path: /.well-known/matrix/server
|
||||||
purpose: Server Discovery
|
purpose: Server Discovery
|
||||||
cors: false
|
cors: false
|
||||||
|
follow_redirects: true
|
||||||
|
|
||||||
- name: Determine domains that we require certificates for (mxisd)
|
- name: Determine domains that we require certificates for (mxisd)
|
||||||
set_fact:
|
set_fact:
|
||||||
|
|
|
@ -35,7 +35,7 @@
|
||||||
- name: Check .well-known on the identity hostname
|
- name: Check .well-known on the identity hostname
|
||||||
uri:
|
uri:
|
||||||
url: "{{ well_known_url_identity }}"
|
url: "{{ well_known_url_identity }}"
|
||||||
follow_redirects: false
|
follow_redirects: "{{ well_known_file_check.follow_redirects }}"
|
||||||
return_content: true
|
return_content: true
|
||||||
register: result_well_known_identity
|
register: result_well_known_identity
|
||||||
ignore_errors: true
|
ignore_errors: true
|
||||||
|
|
Loading…
Reference in a new issue