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:
parent
933c6b8857
commit
8312b9df38
1 changed files with 6 additions and 5 deletions
|
@ -4,7 +4,7 @@ location ^~ __PATH__/ {
|
||||||
# Path to source
|
# Path to source
|
||||||
alias __FINALPATH__/public/;
|
alias __FINALPATH__/public/;
|
||||||
|
|
||||||
# Force https
|
# Force usage of https
|
||||||
if ($scheme = http) {
|
if ($scheme = http) {
|
||||||
rewrite ^ https://$server_name$request_uri? permanent;
|
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
|
# Common parameter to increase upload size limit in conjunction with dedicated php-fpm file
|
||||||
#client_max_body_size 50M;
|
#client_max_body_size 50M;
|
||||||
|
|
||||||
try_files $uri $uri/ /$uri /$uri/ @firefly;
|
try_files $uri $uri/ @firefly;
|
||||||
location ~* \.php(?:$|/) {
|
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;
|
||||||
|
|
||||||
fastcgi_param modHeadersAvailable true;
|
fastcgi_index index.php;
|
||||||
include fastcgi_params;
|
include fastcgi_params;
|
||||||
fastcgi_param REMOTE_USER $remote_user;
|
fastcgi_param REMOTE_USER $remote_user;
|
||||||
fastcgi_param PATH_INFO $fastcgi_path_info;
|
fastcgi_param PATH_INFO $fastcgi_path_info;
|
||||||
|
@ -31,5 +31,6 @@ location ^~ __PATH__/ {
|
||||||
}
|
}
|
||||||
|
|
||||||
location @firefly {
|
location @firefly {
|
||||||
rewrite __PATH__/(.*)$ __PATH__/index.php?/$1 last;
|
# rewrite all to index.php
|
||||||
|
rewrite ^(.*)$ __PATH__/index.php/$1 last;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue