user www-data; worker_processes 2; daemon off; events { worker_connections 5000; multi_accept on; } worker_rlimit_nofile 20000; http { sendfile off; tcp_nopush on; tcp_nodelay on; keepalive_requests 100; keepalive_timeout 30; types_hash_max_size 2048; server_tokens off; client_max_body_size 128M; include /etc/nginx/mime.types; default_type text/plain; log_format nginx '$remote_addr - $remote_user [$time_local] "$request" $status $body_bytes_sent "$http_referer" "$http_user_agent" - $request_time X-Forwarded-For=$http_x_forwarded_for Host=$host'; access_log /dev/stdout nginx; error_log /dev/stderr warn; gzip on; gzip_disable "msie6"; gzip_vary on; gzip_proxied any; gzip_comp_level 6; gzip_buffers 16 8k; gzip_http_version 1.1; gzip_types application/atom+xml application/javascript application/json application/rss+xml application/vnd.ms-fontobject application/x-font-ttf application/x-web-app-manifest+json application/xhtml+xml application/xml font/opentype image/svg+xml image/x-icon image/png image/gif image/jpeg image/webp text/css text/plain text/x-component; server { listen 80; server_name tus.client; root /var/www/example; index index.html index.htm index.php; charset utf-8; location / { try_files $uri $uri/ /index.html; } location = /favicon.ico { access_log off; log_not_found off; } location = /robots.txt { access_log off; log_not_found off; } access_log /var/log/nginx/tus.client-access.log nginx; error_log /var/log/nginx/tus.client-error.log warn; sendfile off; client_max_body_size 3000m; location ~ \.php$ { fastcgi_split_path_info ^(.+\.php)(/.+)$; fastcgi_pass unix:/var/run/php/php7.1-fpm.sock; 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; fastcgi_connect_timeout 300; fastcgi_send_timeout 300; fastcgi_read_timeout 300; } location ~ /\.ht { deny all; } } }