4 worker_connections 1024;
8 '$remote_addr - $remote_user [$time_local] "$request" '
9 '$status $body_bytes_sent "$http_referer" '
10 '"$http_user_agent" "$http_x_forwarded_for" nocache:$no_cache';
11 access_log /var/log/nginx/access.log main buffer=32k;
12 client_body_buffer_size 4K;
13 # NOTE: % getconf PAGESIZE
15 client_body_temp_path /run/shm/cache/nginx/client_body 1 2;
16 client_body_timeout 60;
17 client_header_buffer_size 1k;
18 client_header_timeout 60;
19 client_max_body_size 20m;
20 default_type application/octet-stream;
21 error_log /var/log/nginx/error.log warn;
23 fastcgi_cache_key "$request_method $scheme://$host$request_uri";
24 fastcgi_cache_path /run/shm/cache/nginx/fastcgi
26 keys_zone=microcache:10m
32 gzip_disable "MSIE [1-6]\.";
33 gzip_http_version 1.1;
39 application/javascript
42 application/vnd.ms-fontobject
43 application/x-font-ttf
44 application/x-javascript
55 include /etc/nginx/mime.types;
57 large_client_header_buffers 4 8k;
58 open_file_cache max=200000 inactive=20s;
59 open_file_cache_errors on;
60 open_file_cache_min_uses 2;
61 open_file_cache_valid 30s;
62 open_log_file_cache max=1000 inactive=20s min_uses=2 valid=1m;
63 proxy_cache_use_stale updating;
64 reset_timedout_connection on;
66 # NOTE: if the client stops reading data, free up the stale client connection after this much time.
68 server_names_hash_bucket_size 128;
71 # NOTE: don't buffer data-sends (disable Nagle algorithm).
72 # Good for sending frequent small bursts of data in real time.
74 # NOTE: causes nginx to attempt to send its HTTP response head in one packet,
75 # instead of using partial frames.
76 # This is useful for prepending headers before calling sendfile,
77 # or for throughput optimization.
78 types_hash_max_size 2048;
79 include /etc/nginx/site.d/*/server.conf;
81 pid /var/run/nginx.pid;