diff --git a/hosts/architect/matrix.nix b/hosts/architect/matrix.nix index 8561e5a..054e39e 100644 --- a/hosts/architect/matrix.nix +++ b/hosts/architect/matrix.nix @@ -18,8 +18,8 @@ with import ./network.nix; { auto_join_rooms: - "#infra:matrix.giugl.io" - "#general:matrix.giugl.io" - - "#gaming:matrix.giugl.io" - "#movies:matrix.giugl.io" + max_upload_size: "30M" ''; listeners = [{ port = 8008; @@ -42,6 +42,7 @@ with import ./network.nix; { postgresql = { enable = true; + package = pkgs.postgresql_11; ensureDatabases = [ "synapse" ]; ensureUsers = [{ name = "matrix-synapse"; @@ -54,6 +55,9 @@ with import ./network.nix; { ${matrixdomain} = { enableACME = true; forceSSL = true; + extraConfig = '' + client_max_body_size 30m; + ''; locations."= /.well-known/matrix/server".extraConfig = let server = { "m.server" = "${matrixdomain}:443"; }; in ''