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