aboutsummaryrefslogtreecommitdiff
path: root/modules/services/web
diff options
context:
space:
mode:
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}"}}`
}