mirror of
https://github.com/YunoHost-Apps/taskboard_ynh.git
synced 2024-09-03 20:26:27 +02:00
Update nginx.conf
This commit is contained in:
parent
09eb81f020
commit
8f9de329e3
1 changed files with 5 additions and 1 deletions
|
@ -14,7 +14,7 @@ location __PATH__/ {
|
||||||
client_max_body_size 100M;
|
client_max_body_size 100M;
|
||||||
client_body_buffer_size 128k;
|
client_body_buffer_size 128k;
|
||||||
|
|
||||||
#try_files $uri $uri/ index.php;
|
try_files $uri $uri/ @__NAME__;
|
||||||
|
|
||||||
location ~ [^/]\.php(/|$) {
|
location ~ [^/]\.php(/|$) {
|
||||||
fastcgi_split_path_info ^(.+?\.php)(/.*)$;
|
fastcgi_split_path_info ^(.+?\.php)(/.*)$;
|
||||||
|
@ -31,6 +31,10 @@ location __PATH__/ {
|
||||||
include conf.d/yunohost_panel.conf.inc;
|
include conf.d/yunohost_panel.conf.inc;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
location @__NAME__ {
|
||||||
|
rewrite ^__PATH__/(.*)$ __PATH__/index.php?/$1 last;
|
||||||
|
}
|
||||||
|
|
||||||
location __PATH__/api {
|
location __PATH__/api {
|
||||||
if (!-e $request_filename) {
|
if (!-e $request_filename) {
|
||||||
rewrite ^(.*)$ __PATH__/api/index.php last; break;
|
rewrite ^(.*)$ __PATH__/api/index.php last; break;
|
||||||
|
|
Loading…
Reference in a new issue