From 16f43d9bf03d3622283e95a3f86c3a8c361b2c2d Mon Sep 17 00:00:00 2001 From: farvardin Date: Sat, 17 Feb 2024 15:17:08 +0100 Subject: [PATCH] fixes upload problem --- conf/config.php | 4 ++-- conf/nginx.conf | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/conf/config.php b/conf/config.php index e36df2b..bf7cf7e 100755 --- a/conf/config.php +++ b/conf/config.php @@ -74,9 +74,9 @@ $START_PAGE = 'main'; // Which page should be default (start page)? $RSS = 'RSS'; // if needed (if autodetection doesn't work), force language -$LANG = en; -//$LANG = __LANGUAGE__; +$LANG = __LANGUAGE__; // (it looks like forcing another language crashes lionwiki so it's better to keep LANG=en at the moment... autodetection seems to work anyway) +$LANG = en; /* see the file config.t2t to tweak the syntax and even more! */ diff --git a/conf/nginx.conf b/conf/nginx.conf index eef57bf..7e3ff9a 100755 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -19,6 +19,10 @@ location __PATH__/ { fastcgi_param REMOTE_USER $remote_user; fastcgi_param PATH_INFO $fastcgi_path_info; fastcgi_param SCRIPT_FILENAME $request_filename; + + ## fixes upload problem: + fastcgi_buffers 16 16k; + fastcgi_buffer_size 32k; } # Don't include SSOWAT user panel (can lead to some server error, like "bad gateway")