max upload size bumped to 30MB

This commit is contained in:
Giulio De Pasquale 2021-12-08 16:48:02 +01:00
parent 394b5e5070
commit 07de18a9a9

View File

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