From 53836541793f66b9e8d67de222a68b0cebb3d210 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Pi=C3=A9dallu?= Date: Mon, 26 Feb 2024 21:21:41 +0100 Subject: [PATCH] change nginx config --- conf/nginx.conf | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/conf/nginx.conf b/conf/nginx.conf index 525b40a..f279cf3 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -12,10 +12,7 @@ location __PATH__/ { index index.php; - # Common parameter to increase upload size limit in conjunction with dedicated php-fpm file - client_max_body_size 50M; - - try_files $uri $uri/ __PATH__/index.php; + try_files $uri $uri/ @bicbucstriim; location ~ [^/]\.php(/|$) { fastcgi_split_path_info ^(.+?\.php)(/.*)$; @@ -31,3 +28,7 @@ location __PATH__/ { # Include SSOWAT user panel. include conf.d/yunohost_panel.conf.inc; } + +location @bicbucstriim { + rewrite /(.*)$ /index.php?/$1 last; +}