From d8d02368700bb4b10502704f1bba02492839d8e2 Mon Sep 17 00:00:00 2001 From: fi Date: Sun, 28 Jan 2024 22:03:15 +0100 Subject: [PATCH] Fix indentation --- .../virtualHosts/hamburg.ccc.de.nix | 28 ++++++++++--------- 1 file changed, 15 insertions(+), 13 deletions(-) diff --git a/config/hosts/public-web-static/virtualHosts/hamburg.ccc.de.nix b/config/hosts/public-web-static/virtualHosts/hamburg.ccc.de.nix index aac7fa2..1d8eef1 100644 --- a/config/hosts/public-web-static/virtualHosts/hamburg.ccc.de.nix +++ b/config/hosts/public-web-static/virtualHosts/hamburg.ccc.de.nix @@ -34,19 +34,21 @@ return = "302 https://spaceapi.hamburg.ccc.de/"; }; - locations."/.well-known/matrix/server" = { - return = "200 '{\"m.server\": \"matrix.hamburg.ccc.de:443\"}'"; - extraConfig = '' - add_header Content-Type application/json; - ''; - }; - locations."/.well-known/matrix/client" = { - return = "200 '{\"m.homeserver\": {\"base_url\": \"https://matrix.hamburg.ccc.de\"}, \"m.identity_server\": {\"base_url\": \"https://vector.im\"}}'"; - extraConfig = '' - default_type application/json; - add_header Access-Control-Allow-Origin *; - ''; - }; + # Add .well-known/matrix stuff for Matrix to work. + locations."/.well-known/matrix/server" = { + return = "200 '{\"m.server\": \"matrix.hamburg.ccc.de:443\"}'"; + extraConfig = '' + add_header Content-Type application/json; + ''; + }; + locations."/.well-known/matrix/client" = { + return = "200 '{\"m.homeserver\": {\"base_url\": \"https://matrix.hamburg.ccc.de\"}, \"m.identity_server\": {\"base_url\": \"https://vector.im\"}}'"; + extraConfig = '' + default_type application/json; + add_header Access-Control-Allow-Origin *; + ''; + }; + # Redirect pages starting with 4 digits for redirecting the old blog # article URLs. # We want to redirect /yyyy/mm/dd/slug to /blog/yyyy/mm/dd/slug, but we