forked from pub-solar/infra
feat: add all matrix well-known data to nginx
This commit is contained in:
parent
6fa03994b1
commit
b085c2e2b2
|
@ -6,7 +6,24 @@ let
|
||||||
add_header X-XSS-Protection "1; mode=block";
|
add_header X-XSS-Protection "1; mode=block";
|
||||||
'';
|
'';
|
||||||
clientConfig = import ./matrix/element-client-config.nix;
|
clientConfig = import ./matrix/element-client-config.nix;
|
||||||
wellKnownClient."m.homeserver".base_url = "https://matrix.pub.solar";
|
wellKnownClient = {
|
||||||
|
"m.homeserver".base_url = "https://matrix.pub.solar";
|
||||||
|
"m.identity_server".base_url = "https://matrix.pub.solar";
|
||||||
|
"im.vector.riot.e2ee".default = true;
|
||||||
|
"io.element.e2ee" = {
|
||||||
|
default = true;
|
||||||
|
secure_backup_required = false;
|
||||||
|
secure_backup_setup_methods = [];
|
||||||
|
};
|
||||||
|
"m.integrations" = {
|
||||||
|
managers = [
|
||||||
|
{
|
||||||
|
api_url = "https://dimension.pub.solar/api/v1/scalar";
|
||||||
|
ui_url = "https://dimension.pub.solar/element";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
wellKnownServer."m.server" = "matrix.pub.solar:8448";
|
wellKnownServer."m.server" = "matrix.pub.solar:8448";
|
||||||
mkWellKnown = data: ''
|
mkWellKnown = data: ''
|
||||||
add_header Content-Type application/json;
|
add_header Content-Type application/json;
|
||||||
|
@ -20,10 +37,19 @@ let
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
services.nginx.virtualHosts = {
|
services.nginx.virtualHosts = {
|
||||||
|
|
||||||
|
#####################################
|
||||||
|
# This is already in production use #
|
||||||
|
#####################################
|
||||||
|
|
||||||
"pub.solar" = {
|
"pub.solar" = {
|
||||||
locations = wellKnownLocations;
|
locations = wellKnownLocations;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#######################################
|
||||||
|
# Stuff below is still in betatesting #
|
||||||
|
#######################################
|
||||||
|
|
||||||
"chat.test.pub.solar" = {
|
"chat.test.pub.solar" = {
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
enableACME = true;
|
enableACME = true;
|
||||||
|
|
Loading…
Reference in a new issue