1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/galette_ynh.git synced 2024-09-03 18:36:28 +02:00

Update nginx.conf

This commit is contained in:
ericgaspar 2021-06-15 22:26:50 +02:00
parent 90bb980a97
commit 5a82802dbc
No known key found for this signature in database
GPG key ID: 574F281483054D44

View file

@ -2,7 +2,7 @@
location __PATH__/ {
# Path to source
alias __FINALPATH__/webroot/ ;
alias __FINALPATH__/webroot ;
if ($scheme = http) {
rewrite ^ https://$server_name$request_uri? permanent;
@ -13,7 +13,8 @@ location __PATH__/ {
# Common parameter to increase upload size limit in conjuction with dedicated php-fpm file
#client_max_body_size 50M;
try_files $uri $uri/ @galette;
try_files $uri $uri/ @__APP__;
location ~ [^/]\.php(/|$) {
fastcgi_split_path_info ^(.+?\.php)(/.*)$;
fastcgi_pass unix:/var/run/php__PHPVERSION__-fpm-__NAME__.sock;
@ -29,6 +30,6 @@ location __PATH__/ {
include conf.d/yunohost_panel.conf.inc;
}
location @galette {
location @__APP__ {
rewrite ^(.*)$ __PATH__/index.php last;
}