mirror of
https://github.com/invoiceninja/dockerfiles.git
synced 2025-12-31 19:47:25 +01:00
add client_body_buffer_size prevents the following logs: [warn] a client request body is buffered to a temporary file
37 lines
867 B
Plaintext
37 lines
867 B
Plaintext
server {
|
|
|
|
error_log /var/log/nginx/error.log debug;
|
|
access_log /var/log/nginx/access.log;
|
|
|
|
listen 80 default_server;
|
|
server_name _;
|
|
|
|
server_tokens off;
|
|
|
|
root /var/www/html/public;
|
|
index index.php;
|
|
|
|
location / {
|
|
try_files $uri $uri/ /index.php?$query_string;
|
|
}
|
|
|
|
location = /favicon.ico { access_log off; log_not_found off; }
|
|
location = /robots.txt { access_log off; log_not_found off; }
|
|
|
|
|
|
location ~* /storage/.*\.php$ {
|
|
return 503;
|
|
}
|
|
|
|
location ~ \.php$ {
|
|
fastcgi_split_path_info ^(.+\.php)(/.+)$;
|
|
fastcgi_pass app:9000;
|
|
fastcgi_index index.php;
|
|
include fastcgi_params;
|
|
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
|
fastcgi_intercept_errors off;
|
|
fastcgi_buffer_size 16k;
|
|
fastcgi_buffers 4 16k;
|
|
}
|
|
}
|