installer/unix-like/create_texts.rb in rhoconnect-3.3.6 vs installer/unix-like/create_texts.rb in rhoconnect-3.4.2
- old
+ new
@@ -352,11 +352,11 @@
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for" "$request_time"';
access_log logs/access.log time_combined;
sendfile on;
- keepalive_timeout 120;
+ keepalive_timeout 30;
client_max_body_size 4m;
client_body_buffer_size 128k;
#gzip on;
include /opt/nginx/conf/conf.d/*.conf;
@@ -400,10 +400,14 @@
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
proxy_redirect off;
+ proxy_connect_timeout 30;
+ proxy_send_timeout 30;
+ proxy_read_timeout 30;
+
proxy_pass http://thin_cluster;
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
@@ -724,6 +728,7 @@
rescue => ex
File.open("#{@log_file}", 'a') { |f| f << ex.message } if @log_file
puts
puts "#{ex.message}"
exit(1)
-end
\ No newline at end of file
+end
+