1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/osticket_ynh.git synced 2024-09-03 19:56:17 +02:00

Update nginx.conf

Move ^/api location stanza out of root location
This commit is contained in:
Serversonic 2023-08-11 12:03:52 +01:00 committed by GitHub
parent d0cbb77c1b
commit 150095074b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -9,11 +9,7 @@ location __PATH__/ {
# Common parameter to increase upload size limit in conjunction with dedicated php-fpm file
client_max_body_size 256M;
try_files $uri $uri/ index.php;
location ~ ^/api/(?!http.php/)(.*) {
try_files $uri $uri/ /api/http.php/$1;
}
try_files $uri $uri/ index.php
location ~ ^/pages/(?!index.php/)(.*) {
try_files $uri $uri/ /pages/index.php/$1;
@ -34,6 +30,10 @@ location __PATH__/ {
include conf.d/yunohost_panel.conf.inc;
}
location ~ ^/api/(?!http.php/)(.*) {
try_files $uri $uri/ /api/http.php/$1;
}
location /include {
deny all;
return 403;