fix local files in docker (#338)

* fix local files in docker

Response::make diesnt exist anymore and the nginx.conf didnt allow the needed paths

* fix import in api.php

---------

Co-authored-by: Christian Willing <cw@c2c-erp.de>
Co-authored-by: Julien Nahum <julien@nahum.net>
This commit is contained in:
christianWilling
2024-03-12 12:29:34 +01:00
committed by GitHub
parent 299e1e677a
commit 9883604941
2 changed files with 11 additions and 4 deletions

View File

@@ -25,6 +25,16 @@ server {
try_files $uri $uri/ /index.php$is_args$args;
}
location /local/temp/ {
set $original_uri $uri;
try_files $uri $uri/ /index.php$is_args$args;
}
location /forms/assets/ {
set $original_uri $uri;
try_files $uri $uri/ /index.php$is_args$args;
}
location ~ \.php$ {
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass unix:/var/run/php-fpm-opnform-site.sock;