Reformat everything
All checks were successful
/ test (push) Successful in 32s

This commit is contained in:
Andrea Ciceri 2024-09-20 11:37:17 +02:00
parent 5f644d0ccd
commit a394b9cefd
Signed by: aciceri
SSH key fingerprint: SHA256:/AagBweyV4Hlfg9u092n8hbHwD5fcB6A3qhDiDA65Rg
167 changed files with 2795 additions and 2122 deletions

View file

@ -3,7 +3,8 @@
lib,
pkgs,
...
}: let
}:
let
clientConfig = {
"m.homeserver".base_url = "https://matrix.aciceri.dev";
"org.matrix.msc3575.proxy".url = "https://syncv3.matrix.aciceri.dev";
@ -14,8 +15,9 @@
add_header Access-Control-Allow-Origin *;
return 200 '${builtins.toJSON data}';
'';
in {
imports = [../nginx-base];
in
{
imports = [ ../nginx-base ];
services.nginx.virtualHosts = {
"aciceri.dev" = {
@ -58,20 +60,23 @@ in {
listeners = [
{
port = 8008;
bind_addresses = ["127.0.0.1"];
bind_addresses = [ "127.0.0.1" ];
type = "http";
tls = false;
x_forwarded = true;
resources = [
{
names = ["client" "federation"];
names = [
"client"
"federation"
];
compress = true;
}
];
}
];
};
extraConfigFiles = [config.age.secrets.matrix-registration-shared-secret.path];
extraConfigFiles = [ config.age.secrets.matrix-registration-shared-secret.path ];
};
backup.paths = [
@ -81,7 +86,7 @@ in {
services.postgresqlBackup = {
enable = true;
databases = ["matrix-synapse"];
databases = [ "matrix-synapse" ];
};
services.matrix-sliding-sync = {