matrix updates

This commit is contained in:
Alexander Bantyev 2020-07-29 23:50:51 +03:00
parent e8a9e2cf21
commit 5156dcc859
Signed by: balsoft
GPG Key ID: E081FF12ADCB4AD5
3 changed files with 6 additions and 14 deletions

View File

@ -15,21 +15,13 @@
names = [ "federation" ];
}
];
tls = true;
type = "http";
x_forwarded = false;
tls = false;
x_forwarded = true;
}];
registration_shared_secret = config.secrets.matrix.shared_secret;
public_baseurl = "https://balsoft.ru:13748/";
public_baseurl = "http://balsoft.ru";
server_name = "balsoft.ru";
tls_certificate_path = toString (pkgs.writeTextFile {
name = "matrix.crt";
text = config.secrets.ssl.cert;
});
tls_private_key_path = toString (pkgs.writeTextFile {
name = "matrix_rsa";
text = config.secrets.ssl.priv;
});
app_service_config_files = [
(builtins.toFile "registration_tg.yaml"
(builtins.toJSON config.secrets.matrix.mautrix-telegram.registration))

View File

@ -14,9 +14,9 @@
root = "/var/lib/balsoft.ru";
index = "index.txt";
};
locations."/.well-known".proxyPass = "https://localhost:13748";
locations."/.well-known".proxyPass = "http://localhost:13748";
locations."/_matrix" = {
proxyPass = "https://localhost:13748";
proxyPass = "http://localhost:13748";
};
enableACME = true;
addSSL = true;
@ -28,7 +28,7 @@
locations."/" = { proxyPass = "http://localhost:5000"; };
} // default;
"matrix.balsoft.ru" = {
locations."/" = { proxyPass = "https://localhost:13748"; };
locations."/" = { proxyPass = "http://localhost:13748"; };
} // default;
"share.balsoft.ru" = {
locations."/" = { root = "/var/lib/share"; };

Binary file not shown.