From 7b56370e90c74b885392bac660246edd798e11f1 Mon Sep 17 00:00:00 2001 From: Henne Vogelsang Date: Fri, 22 Mar 2019 11:29:25 +0100 Subject: [PATCH] Disable X-Sendfile default There are people deploying this in heroku, on nginx, standalone etc. etc. Do not set web server specific defaults in the code... --- 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 13c2e71e..60e023a0 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -33,7 +33,7 @@ Osem::Application.configure do # config.assets.manifest = YOUR_PATH # 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-Sendfile' # for apache # 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.