Tune nonblocking pool growing policy
[elliptics.git] / conf / nginx.conf
blob21586938c1802ab77d7a77065dd6f9889c40d78c
1 user www-data www-data;
3 pid       /var/run/nginx.pid;
4 lock_file /var/lock/nginx.lock;
6 #use_syslog on;
7 #error_log  syslog error;
9 worker_processes     24;
10 worker_rlimit_nofile 65536;
11 working_directory    /var/tmp;
13 events {
14         use epoll;
15         worker_connections 16384;
16         multi_accept on;
19 http {
20         sendfile    on;
21         tcp_nodelay on;
22         tcp_nopush  on;
24         root       /var/www;
26         include      /etc/nginx/mime.types;
27         default_type application/octet-stream;
29         server_name_in_redirect off;
30         server_tokens           off;
32         keepalive_timeout  60 60;
33         keepalive_requests 256;
35         gzip            on;
36         gzip_buffers    64 16k;
37         gzip_comp_level 1;
38         gzip_disable    msie6;
40         client_header_timeout 1m;
41         client_body_timeout   1m;
42         send_timeout          1m;
44         reset_timedout_connection on;
45         
46         client_header_buffer_size   4k;
47         large_client_header_buffers 64 16k;
49         client_max_body_size        32m;
50         client_body_buffer_size     1m;
51         client_body_temp_path       /var/spool/nginx/client-temp 2 2;
53         fastcgi_next_upstream       error timeout invalid_header;
54         fastcgi_buffers             64 16k;
55         fastcgi_temp_path           /var/spool/nginx/fastcgi-temp 2 2;
56         
57         proxy_buffering             on;
58         proxy_next_upstream         error timeout invalid_header;
59         proxy_buffers               64 16k;
60         proxy_temp_path             /var/spool/nginx/proxy-temp 2 2;
61         
62         include /etc/nginx/fastcgi_params;
63         
64         include /etc/nginx/conf.d/*.conf;
65         include /etc/nginx/sites-enabled/*.conf;