-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnginx_lock.conf
More file actions
42 lines (31 loc) · 1.04 KB
/
nginx_lock.conf
File metadata and controls
42 lines (31 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
daemon on;
worker_processes 4;
worker_cpu_affinity auto;
error_log /tmp/nginx-benchmark/error.log info;
pid /tmp/nginx-benchmark/nginx.pid;
events {
worker_connections 768;
}
http {
error_log /tmp/nginx-benchmark/error.log info;
access_log /tmp/nginx-benchmark/access.log;
sendfile on;
client_body_temp_path /tmp/nginx-benchmark/client_body_temp;
proxy_temp_path /tmp/nginx-benchmark/proxy_temp;
fastcgi_temp_path /tmp/nginx-benchmark/fastcgi_temp;
uwsgi_temp_path /tmp/nginx-benchmark/uwsgi_temp;
scgi_temp_path /tmp/nginx-benchmark/scgi_temp;
proxy_cache_path /tmp/nginx-benchmark/cache levels=1:2 keys_zone=cache:64m max_size=10g use_temp_path=off;
proxy_buffering on;
proxy_cache cache;
proxy_cache_valid 200 1d;
proxy_cache_lock on;
proxy_cache_lock_age 5s;
proxy_cache_lock_timeout 5s;
server {
listen 1080 default_server;
location / {
proxy_pass http://localhost:12345;
}
}
}