Skip to content

Commit b87f59b

Browse files
authored
Merge pull request #9 from Intellection/update_configuration
Update configuration to improve performance and reliability
2 parents 245184f + a56a0d2 commit b87f59b

File tree

3 files changed

+25
-10
lines changed

3 files changed

+25
-10
lines changed

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
# Changelog
22

3+
## 1.19.5-6
4+
5+
* Set `client_body_buffer_size` to `128k`.
6+
* Set `client_header_timeout` to `605s`.
7+
* Set `client_max_body_size` to `500m`.
8+
* Set `keepalive_timeout` to `605s`.
9+
* Set `proxy_connect_timeout` to `60s` (same as default).
10+
* Set `proxy_send_timeout` to `60s` (same as default).
11+
* Set `send_timeout` to `60s` (same as default).
12+
313
## 1.19.5-5
414

515
* Add `http_x_amzn_trace_id` to json logging (for `X-Amzn-Trace-Id` header).

config/http.conf

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,19 @@ http {
22
include /etc/nginx/mime.types;
33
include /etc/nginx/log.conf;
44

5-
server_tokens off;
6-
keepalive_timeout 20s;
7-
sendfile on;
8-
tcp_nopush on;
9-
client_max_body_size 400m;
10-
client_body_timeout 300s;
5+
server_tokens off;
6+
sendfile on;
7+
tcp_nopush on;
8+
9+
client_max_body_size 500m;
10+
client_body_buffer_size 128k;
11+
client_body_timeout 300s;
12+
client_header_timeout 605s;
13+
keepalive_timeout 605s;
14+
proxy_connect_timeout 60s;
15+
proxy_read_timeout 600s;
16+
proxy_send_timeout 60s;
17+
send_timeout 60s;
1118

1219
# If we receive X-Forwarded-Proto, pass it through; otherwise, pass along the
1320
# scheme used to connect to this server
@@ -49,8 +56,6 @@ http {
4956
proxy_set_header X-Request-ID $proxy_x_request_id;
5057
proxy_set_header X-Forwarded-Host $host;
5158

52-
proxy_read_timeout 600s;
53-
5459
include /etc/nginx/app.conf;
5560

5661
server {

config/main.conf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
worker_processes auto;
2-
worker_rlimit_nofile 8192;
1+
worker_processes auto;
2+
worker_rlimit_nofile 8192;
33
worker_shutdown_timeout 630s;
44

55
events {

0 commit comments

Comments
 (0)