From 33450ab6895f7ebdc7a59a80e55fcf738138fe61 Mon Sep 17 00:00:00 2001 From: Didier Date: Thu, 16 Mar 2023 01:10:22 +0100 Subject: [PATCH] try this --- custom/proxy/config/vhost.d/default | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/custom/proxy/config/vhost.d/default b/custom/proxy/config/vhost.d/default index 4b1d424..56097cf 100644 --- a/custom/proxy/config/vhost.d/default +++ b/custom/proxy/config/vhost.d/default @@ -13,4 +13,19 @@ location ^~ /.well-known/acme-challenge/ { location /_/nginx { add_header Content-Type text/html; return 200 "Nginx is working..."; +} + +location /_matrix { + proxy_pass http://dendrite:8008; +} + +location /.well-known/matrix/server { + add_header Content-Type application/json; + return 200 '{"m.server":"ixvd.net:443"}'; +} + +location /.well-known/matrix/client { + add_header Content-Type application/json; + add_header Access-Control-Allow-Origin *; + return 200 '{"m.homeserver":{"base_url":"https://ixvd.net"},"m.identity_server":{"base_url":"https://vector.im"}}'; } \ No newline at end of file