Всем привет, помогите правильно настроить nginx.conf у меня не конвертируются видео больших размеров примерно начиная с 480MB
Код:
user dextermda;
worker_processes auto;
pid /run/nginx.pid;
include /etc/nginx/modules-enabled/*.conf;
events {
worker_connections 1000;
use epoll; # you should use epoll here for Linux kernels 2.6.x
multi_accept on;
}
worker_priority -5;
worker_rlimit_nofile 2000;
http {
server_names_hash_max_size 5120;
server_names_hash_bucket_size 64;
include /etc/nginx/mime.types;
default_type application/octet-stream;
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for" [$host] $request_time';
access_log /var/log/nginx/access.log main buffer=16k;
server_tokens off;
sendfile on;
tcp_nopush on;
tcp_nodelay on;
keepalive_timeout 5;
keepalive_requests 1000;
gzip on;
gzip_vary on;
gzip_static on;
gzip_disable "msie6";
gzip_proxied any;
gzip_http_version 1.1;
gzip_min_length 1000;
gzip_comp_level 6;
gzip_buffers 64 8k;
# You can remove image/png image/x-icon image/gif image/jpeg if you have slow CPU
gzip_types text/plain text/xml text/css application/x-javascript application/xml image/png image/x-icon image/gif image/jpeg application/xml+rss text/javascript application/atom+xml application/javascript;
ignore_invalid_headers on;
send_timeout 3m;
reset_timedout_connection on;
connection_pool_size 256;
large_client_header_buffers 4 256k;
client_header_timeout 3m;
client_body_timeout 3m;
client_max_body_size 6400m;
client_body_buffer_size 256k;
client_body_in_file_only clean;
output_buffers 1 1m;
request_pool_size 32k;
postpone_output 1460;
open_file_cache max=200000 inactive=20s;
open_file_cache_valid 30s;
open_file_cache_min_uses 2;
open_file_cache_errors on;
include /etc/nginx/conf.d/*.conf;
include /etc/nginx/sites-enabled/*;
}
#mail {
# # See sample authentication script at:
# # http://wiki.nginx.org/ImapAuthenticateWithApachePhpScript
#
# # auth_http localhost/auth.php;
# # pop3_capabilities "TOP" "USER";
# # imap_capabilities "IMAP4rev1" "UIDPLUS";
#
# server {
# listen localhost:110;
# protocol pop3;
# proxy on;
# }
#
# server {
# listen localhost:143;
# protocol imap;
# proxy on;
# }
#}