|
|
|
@ -48,11 +48,13 @@ server {
|
|
|
|
|
# serve the static content for the well known files
|
|
|
|
|
location /.well-known/matrix/server {
|
|
|
|
|
default_type application/json;
|
|
|
|
|
add_header Access-Control-Allow-Origin *;
|
|
|
|
|
return 200 '{"m.server": "${MATRIX_HOSTNAME}:443"}';
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
location /.well-known/matrix/client {
|
|
|
|
|
default_type application/json;
|
|
|
|
|
add_header Access-Control-Allow-Origin *;
|
|
|
|
|
return 200 '{"m.homeserver":{"base_url": "https://${MATRIX_HOSTNAME}"}}';
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|