From 346607b53121b80fff601c0fc9c8ee9adb9122fb Mon Sep 17 00:00:00 2001 From: farvardin Date: Sat, 17 Feb 2024 01:14:43 +0100 Subject: [PATCH 1/3] maj + fix droits et config --- conf/config.php | 5 +++-- scripts/install | 6 ++++++ 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/conf/config.php b/conf/config.php index fd82e20..e36df2b 100755 --- a/conf/config.php +++ b/conf/config.php @@ -74,8 +74,9 @@ $START_PAGE = 'main'; // Which page should be default (start page)? $RSS = 'RSS'; // if needed (if autodetection doesn't work), force language -//$LANG = fr; -$LANG = __LANGUAGE__; +$LANG = en; +//$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) /* see the file config.t2t to tweak the syntax and even more! */ diff --git a/scripts/install b/scripts/install index ab15b95..ae03004 100755 --- a/scripts/install +++ b/scripts/install @@ -73,6 +73,12 @@ ynh_add_nginx_config # chmod again to fix unaccessible templates / css files chmod -R 755 "$install_dir" +# don't allow read access to config.php for everyone +chmod 750 "$install_dir"/config.php + +# chmod root folder +chmod 750 "$install_dir" + #================================================= # END OF SCRIPT #================================================= From 0ea84503a5054fa342e9ee9814344e71d4aa99c2 Mon Sep 17 00:00:00 2001 From: yunohost-bot Date: Sat, 17 Feb 2024 00:15:08 +0000 Subject: [PATCH 2/3] Auto-update README --- README.md | 4 ++-- README_fr.md | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 9064d76..d0246ca 100755 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ @@ -46,4 +46,4 @@ or sudo yunohost app upgrade lionwiki-t2t -u https://github.com/YunoHost-Apps/lionwiki-t2t_ynh/tree/testing --debug ``` -**More info regarding app packaging:** +**More info regarding app packaging:** \ No newline at end of file diff --git a/README_fr.md b/README_fr.md index b106762..86fe4a1 100755 --- a/README_fr.md +++ b/README_fr.md @@ -1,5 +1,5 @@ From 16f43d9bf03d3622283e95a3f86c3a8c361b2c2d Mon Sep 17 00:00:00 2001 From: farvardin Date: Sat, 17 Feb 2024 15:17:08 +0100 Subject: [PATCH 3/3] 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")