ingress: shift drvs
This commit is contained in:
parent
f9ecf557e3
commit
e4936f55d6
1 changed files with 6 additions and 3 deletions
|
@ -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 "*";
|
||||||
|
|
Loading…
Add table
Reference in a new issue