Skip to content

Commit 5a3761c

Browse files
author
Bert McCutchen
committed
Increased timeouts and buffer size for local development debugging
1 parent ebe8535 commit 5a3761c

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

lib/rails/nginx/templates/nginx.conf.erb

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,13 +61,22 @@ server {
6161
client_max_body_size 4G;
6262
keepalive_timeout 75s;
6363

64+
# Increase timeout to 30 minutes for when debugging locally.
65+
proxy_connect_timeout 1800;
66+
proxy_send_timeout 1800;
67+
proxy_read_timeout 1800;
68+
6469
# reverse proxy
6570
location @<%= name %> {
6671
proxy_pass http://<%= name %>;
6772
proxy_http_version 1.1;
6873
proxy_no_cache 1;
6974
proxy_cache_bypass 1;
7075

76+
proxy_buffer_size 128k;
77+
proxy_buffers 4 256k;
78+
proxy_busy_buffers_size 256k;
79+
7180
<% if options[:ssl] %>
7281
# proxy SSL
7382
proxy_ssl_server_name on;

0 commit comments

Comments
 (0)