From 24dcf6a90c47f5a1146e08da8849b33be4d17c72 Mon Sep 17 00:00:00 2001 From: Craige McWhirter Date: Tue, 21 Apr 2020 11:16:15 +1000 Subject: [PATCH] Couple of updates --- roles/iohk.nix | 2 +- roles/matrix.nix | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/roles/iohk.nix b/roles/iohk.nix index 1914126..92d7f03 100644 --- a/roles/iohk.nix +++ b/roles/iohk.nix @@ -6,7 +6,7 @@ nix = { extraOptions = '' - repeat = 1 # Ensure reproducibility of builds + #repeat = 1 # Ensure reproducibility of builds ''; }; diff --git a/roles/matrix.nix b/roles/matrix.nix index 5f81b03..3ef9331 100644 --- a/roles/matrix.nix +++ b/roles/matrix.nix @@ -32,7 +32,7 @@ type = "http"; x_forwarded = true; } ]; - max_upload_size = "100M"; + max_upload_size = "200M"; # Also set client_max_body_size to at least this tls_certificate_path = "/var/lib/acme/synapse.mcwhirter.io/fullchain.pem"; tls_private_key_path = "/var/lib/acme/synapse.mcwhirter.io/key.pem"; turn_shared_secret = "IZI43ylg6aJdMwy5MyhUPqT8SJD4C3P1vDcIFMzqGvTXJiCjAEvnPcDCBZfig5Q6"; @@ -81,6 +81,9 @@ return 200 '${builtins.toJSON client}'; ''; }; + extraConfig = '' + client_max_body_size 200M; # Needs to be no less than max_upload_size + ''; }; "chat.mcwhirter.io" = { forceSSL = true;