From 09eb81f020847f6f1c0280f1c59b84c465b562dd Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Mon, 1 Feb 2021 16:27:01 +0100 Subject: [PATCH] Update nginx.conf --- conf/nginx.conf | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/conf/nginx.conf b/conf/nginx.conf index 19266af..bff72bf 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -2,7 +2,7 @@ location __PATH__/ { # Path to source - alias __FINALPATH__/ ; + alias __FINALPATH__/; # Force usage of https if ($scheme = http) { @@ -11,21 +11,11 @@ location __PATH__/ { index index.php index.html index.htm; - # Common parameter to increase upload size limit in conjunction with dedicated php-fpm file client_max_body_size 100M; client_body_buffer_size 128k; - location __PATH__/api { - if (!-e $request_filename) { - rewrite ^(.*)$ __PATH__/api/index.php last; break; - } - } + #try_files $uri $uri/ index.php; - location __PATH__/api/taskboard.db { - rewrite ^(.*)$ __PATH__/api/index.php last; break; - } - - try_files $uri $uri/ index.php; location ~ [^/]\.php(/|$) { fastcgi_split_path_info ^(.+?\.php)(/.*)$; fastcgi_pass unix:/var/run/php/php__PHPVERSION__-fpm-__NAME__.sock; @@ -40,4 +30,14 @@ location __PATH__/ { # Include SSOWAT user panel. include conf.d/yunohost_panel.conf.inc; } + +location __PATH__/api { + if (!-e $request_filename) { + rewrite ^(.*)$ __PATH__/api/index.php last; break; + } + } + + location __PATH__/api/taskboard.db { + rewrite ^(.*)$ __PATH__/api/index.php last; break; + } \ No newline at end of file