← Back
Editing: nginx.conf_1
user nginx; worker_processes auto; error_log /var/log/nginx/error.log notice; pid /run/nginx.pid; events { worker_connections 1024; ## allow multiple connections for better performance multi_accept on; ## recommended for most any type of Linux server (event polling) 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"'; access_log /var/log/nginx/access.log main; ## cache metadata (only) of any files that are opened regularly (including errors) ## how many files cached and how often a file must be requested to remain in the cache open_file_cache max=10000 inactive=3m; open_file_cache_min_uses 2; open_file_cache_valid 1m; open_file_cache_errors on; ## useful nginx settings sendfile on; tcp_nodelay on; tcp_nopush on; types_hash_max_size 4096; ## Timeouts should be capped to save memory client_header_timeout 60; keepalive_timeout 90; keepalive_requests 100; ## Allow large post sizes and frontend uploads client_max_body_size 32m; include /etc/nginx/conf.d/*.conf; }
Save File
Cancel