ingress: shift drvs

This commit is contained in:
41666 2023-12-29 14:32:49 -05:00
parent f9ecf557e3
commit e4936f55d6

View file

@ -49,22 +49,25 @@ in {
forceSSL = true; forceSSL = true;
enableACME = true; enableACME = true;
locations."=/.well-known/matrix/server" = { locations."=/.well-known/matrix/server" = let
alias = pkgs.writeText "well-known-matrix-server" builtins.toJSON { alias = pkgs.writeText "well-known-matrix-server" builtins.toJSON {
"m.server" = "mx.sapphic.engineer"; "m.server" = "mx.sapphic.engineer";
}; };
in {
alias = "${alias}";
extraConfig = '' extraConfig = ''
default_type application/json; default_type application/json;
''; '';
}; };
locations."=/.well-known/matrix/client" = { locations."=/.well-known/matrix/client" = let
alias = pkgs.writeText "well-known-matrix-client" builtins.toJSON { alias = pkgs.writeText "well-known-matrix-client" builtins.toJSON {
"m.homeserver" = { "m.homeserver" = {
base_url = "https://mx.sapphic.engineer"; base_url = "https://mx.sapphic.engineer";
}; };
}; };
in {
alias = "${alias}";
extraConfig = '' extraConfig = ''
default_type application/json; default_type application/json;
add_header Access-Control-Allow-Origin "*"; add_header Access-Control-Allow-Origin "*";