From 2609503f6d58407df873c4662f3a0e4590582253 Mon Sep 17 00:00:00 2001 From: rosbeef andino Date: Thu, 29 Jun 2023 08:39:25 +0000 Subject: [PATCH] Update config --- scripts/config | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/scripts/config b/scripts/config index 63fc111..5b6480f 100644 --- a/scripts/config +++ b/scripts/config @@ -19,11 +19,10 @@ get__max_upload_size() { set__max_upload_size() { ynh_write_var_in_file --file=/etc/matrix-$app/homeserver.yaml --key=max_upload_size --value="${max_upload_size}" - sed -i -r "s|client_max_body_size\s+[[:digit:]]+M;|client_max_body_size ${max_upload_size}M;|g" "/etc/nginx/conf.d/$domain.d/$app.conf + sed -i -r "s|client_max_body_size\s[[:digit:]]*[GMK]?;|client_max_body_size ${max_upload_size};|g" "/etc/nginx/conf.d/$domain.d/$app.conf ynh_add_nginx_conf } - #================================================= # GENERIC FINALIZATION #=================================================