From e446ec57b17e4690140749a5ebe41d999c53de30 Mon Sep 17 00:00:00 2001 From: Christoph Haas Date: Thu, 16 Jun 2016 12:11:00 +0200 Subject: [PATCH] Enable X-Accel-Redirect for nginx production use --- config/environments/production.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/environments/production.rb b/config/environments/production.rb index 89d029d..c7bead3 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -40,7 +40,7 @@ Debshots::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 = true