From f41afd1a489fa1eceb529443278a8feb06d1fab2 Mon Sep 17 00:00:00 2001 From: Christoph Haas Date: Wed, 8 Aug 2018 09:09:27 +0200 Subject: [PATCH] Fixed problem with wrong redirects behind proxy --- config/environments/production.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/config/environments/production.rb b/config/environments/production.rb index a0fbc4f..5960d25 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -107,5 +107,6 @@ Rails.application.configure do } # Any action dealing with authentication should redirect to HTTPS - config.to_prepare { Devise::SessionsController.force_ssl } + # Disabled because it will redirect incorrectly behind a proxy. + # config.to_prepare { Devise::SessionsController.force_ssl } end