nixos/matrix-synapse: fix duplicate Content-Type header in example

nginx adds a `content-type: application/octet-stream` header by
default, and `add_header` does not supplant it. By setting
`default_type` instead we avoid the extraneous header.
This commit is contained in:
Benjamin Saunders
2023-07-29 17:12:09 -07:00
parent 7cdce123f5
commit 5f445e8cf5
+1 -1
View File
@@ -30,7 +30,7 @@ let
clientConfig."m.homeserver".base_url = "https://${fqdn}";
serverConfig."m.server" = "${fqdn}:443";
mkWellKnown = data: ''
add_header Content-Type application/json;
default_type application/json;
add_header Access-Control-Allow-Origin *;
return 200 '${builtins.toJSON data}';
'';