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:
- "#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 ''