From d9dd2792c6e9e716a407f15a7b488c00e9c4ce24 Mon Sep 17 00:00:00 2001 From: Christoph Haas Date: Thu, 28 Jul 2016 18:17:47 +0200 Subject: [PATCH] Do not redirect HTTP to HTTPS globally. Causes 90% double requests. --- 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 a2433ae..65d43d9 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -46,7 +46,7 @@ Debshots::Application.configure do 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 + # config.force_ssl = true # Set to :debug to see everything in the log. # config.log_level = :info