1
- worker_processes 1 ;
1
+ worker_processes auto ;
2
2
3
- events { worker_connections 1024; }
3
+ events {
4
+ accept_mutex on;
5
+ multi_accept on;
6
+ worker_connections 512;
7
+ }
4
8
5
9
http {
6
10
include mime.types;
7
11
server_names_hash_bucket_size 128;
8
12
sendfile on;
9
-
10
- proxy_buffers 8 1024k;
13
+
14
+ proxy_buffers 8 1024k;
11
15
proxy_buffer_size 1024k;
16
+ aio on;
17
+ directio 4m;
18
+ tcp_nopush on;
19
+ tcp_nodelay on;
12
20
13
21
upstream eae {
14
22
server 10.200.10.1:8081;
23
+ keepalive 20;
24
+ keepalive_requests 50;
25
+ keepalive_timeout 60s;
15
26
}
16
27
17
28
upstream platform {
@@ -25,11 +36,17 @@ http {
25
36
upstream brokers_ws {
26
37
server 10.200.10.1:8690;
27
38
server 10.200.10.1:8790;
39
+ keepalive 20;
40
+ keepalive_requests 50;
41
+ keepalive_timeout 60s;
28
42
}
29
43
30
44
upstream brokers_http {
31
45
server 10.200.10.1:8691;
32
46
server 10.200.10.1:8791;
47
+ keepalive 20;
48
+ keepalive_requests 50;
49
+ keepalive_timeout 60s;
33
50
}
34
51
35
52
upstream storage_http {
@@ -90,18 +107,24 @@ http {
90
107
add_header X-debug "/api/v1/streams";
91
108
proxy_pass http://storage_http;
92
109
proxy_read_timeout 240s;
110
+ proxy_http_version 1.1;
111
+ proxy_set_header Connection "";
93
112
}
94
113
95
114
# Data Volume endpoint
96
115
location /api/v1/volume {
97
116
add_header X-debug "/api/v1/volume";
98
117
proxy_pass http://brokers_http;
99
118
proxy_read_timeout 240s;
119
+ proxy_http_version 1.1;
120
+ proxy_set_header Connection "";
100
121
}
101
122
102
123
# Network explorer
103
124
location /network-explorer/ {
104
125
proxy_pass http://network_explorer$request_uri;
126
+ proxy_http_version 1.1;
127
+ proxy_set_header Connection "";
105
128
}
106
129
107
130
### API ENDPOINTS PROXIED TO ENGINE-AND-EDITOR ###
@@ -124,14 +147,17 @@ http {
124
147
proxy_set_header X-Forwarded-Port $server_port;
125
148
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
126
149
proxy_set_header X-Request-URI $request_uri;
127
-
150
+ proxy_set_header Connection "";
151
+ proxy_http_version 1.1;
128
152
proxy_pass http://eae$uri;
129
153
}
130
154
131
155
### Utility paths proxied to the Ethereum nodes in the docker stack. Useful if SSL is terminated at nginx ###
132
156
133
157
location /mainchain-rpc/http/ {
134
158
proxy_pass http://mainchain_rpc_http/;
159
+ proxy_http_version 1.1;
160
+ proxy_set_header Connection "";
135
161
}
136
162
137
163
location /mainchain-rpc/ws/ {
@@ -145,6 +171,8 @@ http {
145
171
146
172
location /sidechain-rpc/http/ {
147
173
proxy_pass http://sidechain_rpc_http/;
174
+ proxy_http_version 1.1;
175
+ proxy_set_header Connection "";
148
176
}
149
177
150
178
location /sidechain-rpc/ws/ {
@@ -178,6 +206,8 @@ http {
178
206
proxy_set_header X-Real-IP $remote_addr;
179
207
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
180
208
proxy_set_header X-Forwarded-Host $server_name;
209
+ proxy_http_version 1.1;
210
+ proxy_set_header Connection "";
181
211
}
182
212
183
213
}
0 commit comments