Couple of updates

This commit is contained in:
Craige McWhirter 2020-04-21 11:16:15 +10:00
parent db77b6de84
commit 24dcf6a90c
Signed by: sercanto
GPG key ID: 7DBA9F5689EFB6AA
2 changed files with 5 additions and 2 deletions

View file

@ -6,7 +6,7 @@
nix = {
extraOptions = ''
repeat = 1 # Ensure reproducibility of builds
#repeat = 1 # Ensure reproducibility of builds
'';
};

View file

@ -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;