summaryrefslogtreecommitdiff
path: root/docker/README.md
diff options
context:
space:
mode:
authorTicho 34782694 <ticho@cyberdi.sk>2022-11-08 15:56:24 +0000
committerTicho 34782694 <ticho@cyberdi.sk>2022-11-08 15:56:24 +0000
commit09015f113ce19280825e54e98d8c5b92b54a03bb (patch)
tree55851b6a63fe1dc981d3d8083907e0a7dbd3f912 /docker/README.md
parentccdaaceb3311a0972c3c23a11c4a81fa7329518a (diff)
downloadconduit-09015f113ce19280825e54e98d8c5b92b54a03bb.zip
Describe a better way to enforce Content-Type in nginx
add_header will not override the Content-Type header set by the server, but will instead add another header below, which is obviously not ideal. The proposed change will instead tell nginx to set the correct value for this header straight away.
Diffstat (limited to 'docker/README.md')
-rw-r--r--docker/README.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/docker/README.md b/docker/README.md
index 36717c4..c702832 100644
--- a/docker/README.md
+++ b/docker/README.md
@@ -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" *;
}