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

Try to get M$ oauth redirect url to work
This commit is contained in:
T3tram 2022-12-13 16:50:25 +01:00 committed by GitHub
parent f31ccbeae4
commit 41deaa11e3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -10,7 +10,15 @@ location __PATH__/ {
#client_max_body_size 50M; #client_max_body_size 50M;
try_files $uri $uri/ index.php; try_files $uri $uri/ index.php;
location ~ [^/]\.php(/|$) {
location ~ ^/api/(?!http.php/)(.*) {
try_files $uri $uri/ /api/http.php/$1;
}
location ~ ^/pages/(?!index.php/)(.*) {
try_files $uri $uri/ /pages/index.php/$1;
}
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;
@ -24,3 +32,8 @@ 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 /include {
deny all;
return 403;
}