about summary refs log tree commit diff
path: root/config
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2016-11-29 02:07:14 +0100
committerEugen Rochko <eugen@zeonfederated.com>2016-11-29 02:07:14 +0100
commitcc70f28f195335f4775f7b6aafe7d90210e8b700 (patch)
treee933cbccbf6d3ec3b6627bba41f4b395c38d2f27 /config
parentc0555f2db6b04edfbf829696648ec3998cef9365 (diff)
Adding rack timeout of 30sec, PuSH jobs moved to push queue so they
can be processed separately
Diffstat (limited to 'config')
-rw-r--r--config/environments/production.rb2
-rw-r--r--config/initializers/timeout.rb1
2 files changed, 2 insertions, 1 deletions
diff --git a/config/environments/production.rb b/config/environments/production.rb
index 0672cd587..9254d494c 100644
--- a/config/environments/production.rb
+++ b/config/environments/production.rb
@@ -30,7 +30,7 @@ Rails.application.configure do
 
   # Specifies the header that your server uses for sending files.
   # config.action_dispatch.x_sendfile_header = 'X-Sendfile' # for Apache
-  # config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for NGINX
+  config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for NGINX
 
   # Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
   config.force_ssl = false
diff --git a/config/initializers/timeout.rb b/config/initializers/timeout.rb
new file mode 100644
index 000000000..8b7311e39
--- /dev/null
+++ b/config/initializers/timeout.rb
@@ -0,0 +1 @@
+Rack::Timeout.timeout = 30
\ No newline at end of file