Table of Contents

ClearCloud Module update requirements

PHP

This update requires the fileinfo php extension. sudo apt install -y php-fileinfo should install it on ubuntu

Nginx

in order for tus to work (the php upload library), php buffering needs to be disabled with :

fastcgi_buffering off;
fastcgi_request_buffering off;

Authorised upload size can be set with client_max_body_size. This will prevent request from being larger than the specified value. The upload_chunk_size setting in config.ini must be set equal or lower to this value (default 10MB). It should be changed in php.ini file

client_max_body_size [VALUE]M;

Here's a snippet of the .conf with these parameters in the proper blocks.

server {
	client_max_body_size 10M;
	
	location ~ \.php$ {
		fastcgi_pass   127.0.0.1:9000;
		fastcgi_buffering off;
		fastcgi_request_buffering off;
		include        fastcgi_params;
		fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
		#fastcgi_buffer_size 128k;
		#fastcgi_buffers 8 128k;
	}
}