do not rely on hoptoad to insert rack ssl
This commit is contained in:
parent
872a96dc71
commit
98bdf68003
2 changed files with 9 additions and 1 deletions
|
|
@ -1,4 +1,8 @@
|
|||
# Copyright (c) 2010-2011, Diaspora Inc. This file is
|
||||
# licensed under the Affero General Public License version 3 or later. See
|
||||
# the COPYRIGHT file.
|
||||
|
||||
if EnviromentConfiguration.enforce_ssl?
|
||||
Rails.application.config.middleware.insert_before HoptoadNotifier::UserInformer, Rack::SSL
|
||||
Rails.application.config.middleware.insert_before ActionDispatch::Cookies, Rack::SSL
|
||||
puts "Rack::SSL is enabled"
|
||||
end
|
||||
|
|
|
|||
|
|
@ -1,3 +1,7 @@
|
|||
# Copyright (c) 2010-2011, Diaspora Inc. This file is
|
||||
# licensed under the Affero General Public License version 3 or later. See
|
||||
# the COPYRIGHT file.
|
||||
|
||||
module EnviromentConfiguration
|
||||
|
||||
def self.heroku?
|
||||
|
|
|
|||
Loading…
Reference in a new issue