forked from steemit/sdc-frontend
-
Notifications
You must be signed in to change notification settings - Fork 0
/
nginx.conf.template
49 lines (33 loc) · 1.02 KB
/
nginx.conf.template
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
42
43
44
45
46
47
48
49
user www-data;
worker_processes 64;
worker_rlimit_nofile 10000;
pid /var/run/nginx.pid;
events {
worker_connections 10000;
}
http {
server_tokens off;
include /etc/nginx/mime.types;
default_type application/octet-stream;
real_ip_header X-Forwarded-For;
set_real_ip_from 172.31.0.0/16;
limit_conn_zone $binary_remote_addr zone=addr:100m;
limit_req_zone $binary_remote_addr zone=public:100m rate=30r/s;
limit_conn addr 32;
limit_req zone=public burst=30;
limit_conn_log_level error;
limit_req_log_level error;
log_format main '$remote_addr - $remote_user [$time_local] '
'"$request" $status $body_bytes_sent '
'|"$http_referer"| "$http_user_agent"';
access_log /dev/stdout main;
error_log /dev/stdout info;
log_not_found off;
sendfile on;
#tcp_nopush on;
keepalive_timeout 15;
gzip on;
include /etc/nginx/conf.d/*.conf;
include /etc/nginx/sites-enabled/*;
}
daemon off;