diff options
author | Johannes Löthberg <johannes@kyriasis.com> | 2019-03-21 19:34:08 +0100 |
---|---|---|
committer | Johannes Löthberg <johannes@kyriasis.com> | 2019-03-21 19:34:08 +0100 |
commit | 62f5f3d2784b6753369fef263f304582bf9062d3 (patch) | |
tree | 8783514b70491dce56a141b83863525aaa9499ac | |
parent | a8f4bc3629ee8674fea56ad24cc421c37745f108 (diff) | |
download | pillar-62f5f3d2784b6753369fef263f304582bf9062d3.tar.xz |
nginx/matrix: Set static json string for well-known discovery
Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>
-rw-r--r-- | nginx/matrix_kyriasis_com.sls | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/nginx/matrix_kyriasis_com.sls b/nginx/matrix_kyriasis_com.sls index 3f24061..8e9d38a 100644 --- a/nginx/matrix_kyriasis_com.sls +++ b/nginx/matrix_kyriasis_com.sls @@ -65,10 +65,8 @@ nginx: - location /.well-known/acme-challenge: - root: /srv/http/ - - location /.well-known/matrix/: - - proxy_pass: https://matrix.kyriasis.com:8448 - - proxy_buffering: "off" - - proxy_set_header: X-Forwarded-For $remote_addr - - proxy_set_header: Host $host + - location /.well-known/matrix/client: + - default_type: application/json + - return: 200 '{"m.homeserver": {"base_url": "https://matrix.kyriasis.com:8448/"}}' # vim: ft=yaml et: |