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:
parent
f31ccbeae4
commit
41deaa11e3
1 changed files with 14 additions and 1 deletions
|
@ -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;
|
||||||
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue