1
0
Fork 0
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:
ericgaspar 2021-02-01 16:27:01 +01:00
parent 5c8311cf07
commit 09eb81f020
No known key found for this signature in database
GPG key ID: 574F281483054D44

View file

@ -2,7 +2,7 @@
location __PATH__/ { location __PATH__/ {
# Path to source # Path to source
alias __FINALPATH__/ ; alias __FINALPATH__/;
# Force usage of https # Force usage of https
if ($scheme = http) { if ($scheme = http) {
@ -11,21 +11,11 @@ location __PATH__/ {
index index.php index.html index.htm; 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_max_body_size 100M;
client_body_buffer_size 128k; client_body_buffer_size 128k;
location __PATH__/api { #try_files $uri $uri/ index.php;
if (!-e $request_filename) {
rewrite ^(.*)$ __PATH__/api/index.php last; break;
}
}
location __PATH__/api/taskboard.db {
rewrite ^(.*)$ __PATH__/api/index.php last; break;
}
try_files $uri $uri/ index.php;
location ~ [^/]\.php(/|$) { location ~ [^/]\.php(/|$) {
fastcgi_split_path_info ^(.+?\.php)(/.*)$; fastcgi_split_path_info ^(.+?\.php)(/.*)$;
fastcgi_pass unix:/var/run/php/php__PHPVERSION__-fpm-__NAME__.sock; fastcgi_pass unix:/var/run/php/php__PHPVERSION__-fpm-__NAME__.sock;
@ -40,4 +30,14 @@ location __PATH__/ {
# Include SSOWAT user panel. # Include SSOWAT user panel.
include conf.d/yunohost_panel.conf.inc; 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;
}