Format nginx matrix .well-known json
This commit is contained in:
parent
42b11fc05e
commit
35b9a0ceda
|
@ -16,7 +16,22 @@
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
locations."/.well-known/matrix/client" = {
|
locations."/.well-known/matrix/client" = {
|
||||||
return = "200 '{\"m.homeserver\": {\"base_url\": \"https://matrix.nekover.se\"}, \"m.identity_server\": {\"base_url\": \"https://vector.im\"}, \"org.matrix.msc3575.proxy\": {\"url\": \"https://matrix.nekover.se\"}, \"org.matrix.msc2965.authentication\": {\"issuer\": \"https://id.nekover.se/realms/nekoverse\", \"account\": \"https://id.nekover.se/realms/nekoverse/account/\"}}'";
|
return = "200 '
|
||||||
|
{
|
||||||
|
\"m.homeserver\": {
|
||||||
|
\"base_url\": \"https://matrix.nekover.se\"
|
||||||
|
},
|
||||||
|
\"m.identity_server\": {
|
||||||
|
\"base_url\": \"https://vector.im\"
|
||||||
|
},
|
||||||
|
\"org.matrix.msc3575.proxy\": {
|
||||||
|
\"url\": \"https://matrix.nekover.se\"
|
||||||
|
},
|
||||||
|
\"org.matrix.msc2965.authentication\": {
|
||||||
|
\"issuer\": \"https://nekover.se/\",
|
||||||
|
\"account\": \"https://matrix-auth.nekover.se/account\"
|
||||||
|
}
|
||||||
|
}'";
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
default_type application/json;
|
default_type application/json;
|
||||||
add_header Access-Control-Allow-Origin *;
|
add_header Access-Control-Allow-Origin *;
|
||||||
|
|
|
@ -34,7 +34,7 @@
|
||||||
inherit nixpkgs-unstable nixpkgs-master hosts simple-nixos-mailserver pterodactyl;
|
inherit nixpkgs-unstable nixpkgs-master hosts simple-nixos-mailserver pterodactyl;
|
||||||
|
|
||||||
# Provide environment for secret key command
|
# Provide environment for secret key command
|
||||||
keyCommandEnv = [ "env" "GNUPGHOME=$HOME/.passinfra_gnupg" "PASSWORD_STORE_DIR=$HOME/pass/infra" ];
|
keyCommandEnv = [ "env" "GNUPGHOME=/home/yuri/.passinfra_gnupg" "PASSWORD_STORE_DIR=/home/yuri/pass/infra" ];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
} // builtins.mapAttrs (helper.generateColmenaHost) hosts;
|
} // builtins.mapAttrs (helper.generateColmenaHost) hosts;
|
||||||
|
|
Loading…
Reference in a new issue