1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/kimai2_ynh.git synced 2024-09-03 19:26:26 +02:00

Update nginx.conf

This commit is contained in:
ericgaspar 2022-03-12 16:23:37 +01:00
parent 2f9add772c
commit 9fc5067a0f
No known key found for this signature in database
GPG key ID: 574F281483054D44

View file

@ -1,17 +1,15 @@
#sub_path_only rewrite ^__PATH__$ __PATH__/ permanent;
root __FINALPATH__/public/ ;
location __PATH__/ {
# Path to source
# alias __FINALPATH__/public/ ;
alias __FINALPATH__/public/;
index index.php;
index index.html index.php;
# Common parameter to increase upload size limit in conjunction with dedicated php-fpm file
#client_max_body_size 50M;
try_files $uri $uri/ /index.php$is_args$args;
try_files $uri $uri/ /__PATH__/index.php;
location ~ [^/]\.php(/|$) {
fastcgi_split_path_info ^(.+?\.php)(/.*)$;
fastcgi_pass unix:/var/run/php/php__PHPVERSION__-fpm-__NAME__.sock;