mirror of
https://github.com/RGBCube/ncc
synced 2025-07-27 18:17:44 +00:00
matrix: increase allowed attachment size
This commit is contained in:
parent
fffe187fc7
commit
eec914e613
1 changed files with 8 additions and 1 deletions
|
@ -56,14 +56,17 @@ in {
|
|||
# from the outside web at all. Only /_matrix is reverse proxied to.
|
||||
|
||||
database.name = "psycopg2";
|
||||
max_upload_size = "512M";
|
||||
|
||||
report_stats = false;
|
||||
|
||||
enable_metrics = true;
|
||||
metrics_flags.known_servers = true;
|
||||
|
||||
expire_access_token = true;
|
||||
url_preview_enabled = true;
|
||||
dynamic_thumbnails = true;
|
||||
|
||||
expire_access_token = true;
|
||||
|
||||
# Trusting Matrix.org.
|
||||
suppress_key_server_warning = true;
|
||||
|
@ -90,6 +93,10 @@ in {
|
|||
services.nginx.virtualHosts.${domain} = configWellKnownResponse;
|
||||
|
||||
services.nginx.virtualHosts.${fqdn} = merge config.services.nginx.sslTemplate configWellKnownResponse {
|
||||
extraConfig = /* nginx */ ''
|
||||
client_max_body_size ${config.services.matrix-synapse.settings.max_upload_size};
|
||||
'';
|
||||
|
||||
locations."/".return = "301 https://${domain}/404";
|
||||
|
||||
locations."/_matrix".proxyPass = "http://[::1]:${toString port}";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue