user root; worker_processes 4; worker_rlimit_nofile 8192; error_log /var/log/nginx/error.log warn; pid /run/nginx.pid; events { worker_connections 2014; multi_accept on; use epoll; } http { 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"'; log_format timed '$remote_addr - $remote_user [$time_local] "$request" ' '$status $body_bytes_sent "$http_referer" ' '"$http_user_agent" "$http_x_forwarded_for" ' '$request_time $upstream_response_time $upstream_addr ' ' $upstream_status $upstream_cache_status $pipe'; access_log /var/log/nginx/access.log timed; sendfile on; tcp_nopush on; keepalive_timeout 30; gzip on; include /etc/nginx/conf.d/*.conf; include /etc/nginx/sites-enabled/*; }