summaryrefslogtreecommitdiffstats
path: root/nginx
diff options
context:
space:
mode:
authorJohannes Löthberg <johannes@kyriasis.com>2019-03-21 19:34:08 +0100
committerJohannes Löthberg <johannes@kyriasis.com>2019-03-21 19:34:08 +0100
commit62f5f3d2784b6753369fef263f304582bf9062d3 (patch)
tree8783514b70491dce56a141b83863525aaa9499ac /nginx
parenta8f4bc3629ee8674fea56ad24cc421c37745f108 (diff)
downloadpillar-62f5f3d2784b6753369fef263f304582bf9062d3.tar.xz
nginx/matrix: Set static json string for well-known discovery
Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>
Diffstat (limited to 'nginx')
-rw-r--r--nginx/matrix_kyriasis_com.sls8
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: