location /.well-known/matrix/client { add_header Access-Control-Allow-Origin * always; add_header Access-Control-Allow-Methods "GET, POST, OPTIONS" always; add_header Access-Control-Allow-Headers "Authorization,Content-Type" always; add_header Access-Control-Allow-Credentials true always; default_type application/json; return 200 '{"m.homeserver":{"base_url":"https://quietlife.nl"}}'; } location /.well-known/matrix/server { add_header Access-Control-Allow-Origin * always; add_header Access-Control-Allow-Methods "GET, POST, OPTIONS" always; add_header Access-Control-Allow-Headers "Authorization,Content-Type" always; add_header Access-Control-Allow-Credentials true always; default_type application/json; return 200 '{"m.server":"quietlife.nl:443"}'; }