From e4936f55d6b00b832e88bb03a46cb56c97c86565 Mon Sep 17 00:00:00 2001 From: noe Date: Fri, 29 Dec 2023 14:32:49 -0500 Subject: [PATCH] ingress: shift drvs --- nixos/hosts/ingress-proxy/default.nix | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/nixos/hosts/ingress-proxy/default.nix b/nixos/hosts/ingress-proxy/default.nix index 3e2f031..995f066 100644 --- a/nixos/hosts/ingress-proxy/default.nix +++ b/nixos/hosts/ingress-proxy/default.nix @@ -49,22 +49,25 @@ in { forceSSL = true; enableACME = true; - locations."=/.well-known/matrix/server" = { + locations."=/.well-known/matrix/server" = let alias = pkgs.writeText "well-known-matrix-server" builtins.toJSON { "m.server" = "mx.sapphic.engineer"; }; + in { + alias = "${alias}"; extraConfig = '' default_type application/json; ''; }; - locations."=/.well-known/matrix/client" = { + locations."=/.well-known/matrix/client" = let alias = pkgs.writeText "well-known-matrix-client" builtins.toJSON { "m.homeserver" = { base_url = "https://mx.sapphic.engineer"; }; }; - + in { + alias = "${alias}"; extraConfig = '' default_type application/json; add_header Access-Control-Allow-Origin "*";