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:
parent
90bb980a97
commit
5a82802dbc
1 changed files with 4 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue