Ticket #1592: nginx.conf

File nginx.conf, 1.1 KB (added by https://stackoverflow.com/users/4861570/stefan, 8 years ago)

example configuration with all write operations (except pid) turned off

Line 
1worker_processes 1;
2error_log nul emerg;
3pid c:\\nginx.pid;
4
5events {
6 worker_connections 1024;
7}
8
9http {
10 include mime.types;
11 default_type application/octet-stream;
12
13 # Turn off the bloody buffering to temp files
14 proxy_buffering off;
15
16 access_log off;
17
18 sendfile on;
19 tcp_nopush on;
20
21 keepalive_timeout 65;
22
23 gzip on;
24 gzip_http_version 1.1;
25 gzip_comp_level 2;
26 gzip_types text/css text/xml image/png application/json
27 application/javascript image/svg+xml;
28
29 server {
30 listen 127.0.0.1:8085;
31 server_name localhost;
32
33 location / {
34 root html;
35 index index.html index.htm;
36 }
37
38 # These two should be the same or nginx will start writing
39 # large request bodies to temp files
40 client_body_buffer_size 10m;
41 client_max_body_size 10m;
42
43 # turn off temp paths for windows readonly
44 client_body_temp_path nul;
45 proxy_temp_path nul;
46 fastcgi_temp_path nul;
47 uwsgi_temp_path nul;
48 scgi_temp_path nul;
49 }
50}