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
5c8311cf07
commit
09eb81f020
1 changed files with 12 additions and 12 deletions
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in a new issue