From 488969abd7d2c8c8c2d23dd2df2cd2c2e39212ff Mon Sep 17 00:00:00 2001 From: coolneng Date: Tue, 2 Jun 2026 15:21:03 +0200 Subject: [PATCH] Move well-known delegation to main domain --- modules/webstack.nix | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/modules/webstack.nix b/modules/webstack.nix index 107133d..20f1bec 100644 --- a/modules/webstack.nix +++ b/modules/webstack.nix @@ -34,21 +34,12 @@ proxy_cookie_path / "/; secure; HttpOnly; SameSite=strict"; ''; virtualHosts = { - # Old domain being redirected + # Redirection of the old domain "coolneng.duckdns.org" = { useACMEHost = "coolneng.duckdns.org"; forceSSL = true; locations = { "/".return = "301 https://psydnd.org$request_uri"; - # Delegation for Matrix - "/.well-known/" = { - alias = "${../well-known}" + "/"; - extraConfig = '' - ${config.services.nginx.commonHttpConfig} - default_type application/json; - add_header Access-Control-Allow-Origin * always; - ''; - }; }; }; # Redirect subdomains @@ -61,6 +52,15 @@ "psydnd.org" = { useACMEHost = "psydnd.org"; forceSSL = true; + # Delegation for Matrix + locations."/.well-known/" = { + alias = "${../well-known}" + "/"; + extraConfig = '' + ${config.services.nginx.commonHttpConfig} + default_type application/json; + add_header Access-Control-Allow-Origin * always; + ''; + }; }; "radicale.psydnd.org" = { useACMEHost = "psydnd.org";