aboutsummaryrefslogtreecommitdiff
path: root/modules/services/web
diff options
context:
space:
mode:
authortdback <tyler@tdback.net>2025-01-18 11:32:11 -0500
committertdback <tyler@tdback.net>2025-01-18 11:32:11 -0500
commit24dc1ef8e285cf39646fc2d7930ee15a110cde13 (patch)
tree3087d95f1e1d700e86d2e11022b0139ca0c290e1 /modules/services/web
parentc83fa9cd8cd0ec6cbd9cf8d5b3d29a6b45ba06c1 (diff)
fix: add missing header directive
Diffstat (limited to 'modules/services/web')
-rw-r--r--modules/services/web/default.nix8
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/services/web/default.nix b/modules/services/web/default.nix
index fe97c0e..0a7b392 100644
--- a/modules/services/web/default.nix
+++ b/modules/services/web/default.nix
@@ -15,14 +15,14 @@ in
virtualHosts = {
${config.networking.domain}.extraConfig = ''
handle /.well-known/matrix/server {
- Content-Type application/json
- Access-Control-Allow-Origin *
+ header Content-Type application/json
+ header Access-Control-Allow-Origin *
respond `{"m.server": "${fqdn}:443"}`
}
handle /.well-known/matrix/client {
- Content-Type application/json
- Access-Control-Allow-Origin *
+ header Content-Type application/json
+ header Access-Control-Allow-Origin *
respond `{"m.homeserver": {"base_url": "${baseUrl}"}}`
}