8000 nginx timeout settings · devel0/example-webapp-with-auth@eb0da64 · GitHub
[go: up one dir, main page]

Skip to content

Commit eb0da64

Browse files
committed
nginx timeout settings
1 parent a02bb35 commit eb0da64

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

deploy/nginx/dev/webapp-test.conf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@
44
server {
55
root /var/www/html;
66

7+
proxy_connect_timeout 60s;
8+
proxy_send_timeout 60s;
9+
proxy_read_timeout 3600s; # max 1hr: allow long execution to avoid gateway timeout 504
10+
send_timeout 60s;
11+
712
rewrite_log on;
813
access_log /var/log/nginx/webapp-test.access.log;
914
error_log /var/log/nginx/webapp-test.error.log notice;

deploy/nginx/prod/webapp.conf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@
1010
server {
1111
root /var/www/html;
1212

13+
proxy_connect_timeout 60s;
14+
proxy_send_timeout 60s;
15+
proxy_read_timeout 3600s; # max 1hr: allow long execution to avoid gateway timeout 504
16+
send_timeout 60s;
17+
1318
rewrite_log on;
1419
access_log /var/log/nginx/webapp-test.access.log;
1520
error_log /var/log/nginx/webapp-test.error.log notice;

0 commit comments

Comments
 (0)
0