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

Update nginx.conf

This commit is contained in:
yalh76 2020-06-11 23:18:52 +02:00
parent 933c6b8857
commit 8312b9df38

View file

@ -4,7 +4,7 @@ location ^~ __PATH__/ {
# Path to source
alias __FINALPATH__/public/;
# Force https
# Force usage of https
if ($scheme = http) {
rewrite ^ https://$server_name$request_uri? permanent;
}
@ -14,12 +14,12 @@ location ^~ __PATH__/ {
# Common parameter to increase upload size limit in conjunction with dedicated php-fpm file
#client_max_body_size 50M;
try_files $uri $uri/ /$uri /$uri/ @firefly;
location ~* \.php(?:$|/) {
try_files $uri $uri/ @firefly;
location ~ \.php {
fastcgi_split_path_info ^(.+?\.php)(/.*)$;
fastcgi_pass unix:/var/run/php/php__PHPVERSION__-fpm-__NAME__.sock;
fastcgi_param modHeadersAvailable true;
fastcgi_index index.php;
include fastcgi_params;
fastcgi_param REMOTE_USER $remote_user;
fastcgi_param PATH_INFO $fastcgi_path_info;
@ -31,5 +31,6 @@ location ^~ __PATH__/ {
}
location @firefly {
rewrite __PATH__/(.*)$ __PATH__/index.php?/$1 last;
# rewrite all to index.php
rewrite ^(.*)$ __PATH__/index.php/$1 last;
}