summary refs log tree commit diff
path: root/nixos/modules/services
diff options
context:
space:
mode:
authorBenjamin Saunders <ben.e.saunders@gmail.com>2023-07-29 17:12:09 -0700
committerBenjamin Saunders <ben.e.saunders@gmail.com>2023-07-29 17:12:09 -0700
commit5f445e8cf578d0e180d50fca1f13e55a3739a39a (patch)
tree5d0465699cb1853da41dc6f198aa41681070ba59 /nixos/modules/services
parent7cdce123f56f970e3de40f24f6ec4fafe7cd52b4 (diff)
downloadnixpkgs-5f445e8cf578d0e180d50fca1f13e55a3739a39a.tar
nixpkgs-5f445e8cf578d0e180d50fca1f13e55a3739a39a.tar.gz
nixpkgs-5f445e8cf578d0e180d50fca1f13e55a3739a39a.tar.bz2
nixpkgs-5f445e8cf578d0e180d50fca1f13e55a3739a39a.tar.lz
nixpkgs-5f445e8cf578d0e180d50fca1f13e55a3739a39a.tar.xz
nixpkgs-5f445e8cf578d0e180d50fca1f13e55a3739a39a.tar.zst
nixpkgs-5f445e8cf578d0e180d50fca1f13e55a3739a39a.zip
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.
Diffstat (limited to 'nixos/modules/services')
-rw-r--r--nixos/modules/services/matrix/synapse.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/services/matrix/synapse.md b/nixos/modules/services/matrix/synapse.md
index cad91ebf58d..94d13aa0820 100644
--- a/nixos/modules/services/matrix/synapse.md
+++ b/nixos/modules/services/matrix/synapse.md
@@ -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}';
   '';