1
0
Fork 0
mirror of https://gitlab.com/famedly/conduit.git synced 2024-12-27 11:34:27 +01:00

Merge branch 'dockerdoc-nginx-content-type' into 'next'

Describe a better way to enforce Content-Type in nginx

See merge request famedly/conduit!415
This commit is contained in:
Jonas Zohren 2022-11-29 17:56:14 +00:00
commit bb9bc0a001

View file

@ -121,12 +121,12 @@ So...step by step:
location /.well-known/matrix/server {
return 200 '{"m.server": "<SUBDOMAIN>.<DOMAIN>:443"}';
add_header Content-Type application/json;
types { } default_type "application/json; charset=utf-8";
}
location /.well-known/matrix/client {
return 200 '{"m.homeserver": {"base_url": "https://<SUBDOMAIN>.<DOMAIN>"}}';
add_header Content-Type application/json;
types { } default_type "application/json; charset=utf-8";
add_header "Access-Control-Allow-Origin" *;
}