diff options
Diffstat (limited to 'config/environments/production.rb')
-rw-r--r-- | config/environments/production.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/config/environments/production.rb b/config/environments/production.rb index 20274cd2b..0c1929366 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -26,4 +26,9 @@ Alaveteli::Application.configure do :sender_address => AlaveteliConfiguration::exception_notifications_from, :exception_recipients => AlaveteliConfiguration::exception_notifications_to end + + require 'rack/ssl' + if AlaveteliConfiguration::force_ssl + config.middleware.insert_before ActionDispatch::Cookies, ::Rack::SSL + end end |