Sha256: e377074af9c7375b128ada17fc44c2089574473b2fd7b549b200ecb017d44034

Contents?: true

Size: 364 Bytes

Versions: 71

Compression:

Stored size: 364 Bytes

Contents

# case ENV['FORCE_SSL']
# when /t|true|yes|y|on/
#   Rails.application.config.middleware.use SslEnforcerOnlyProtocol, :https_port => ENV['HOST_PORT']
# end
#
# BEGIN {
#   class SslEnforcerOnlyProtocol < Rack::SslEnforcer
#     def current_scheme
#       @request.scheme == 'https'
#     end
#   end
# }

Rails.application.config.force_ssl = ENV['FORCE_SSL'].to_b

Version data entries

71 entries across 71 versions & 2 rubygems

Version Path
mvpkit-2.0.2 project/config/initializers/ssl.rb
mvpkit-2.0.1 project/config/initializers/ssl.rb
mvpkit-2.0.0 project/config/initializers/ssl.rb
mvpkit-1.1.2 config/initializers/ssl.rb
mvpkit-1.1.1 config/initializers/ssl.rb
mvpkit-1.1.0 config/initializers/ssl.rb
mvpkit-1.0.4 config/initializers/ssl.rb
mvpkit-1.0.3 config/initializers/ssl.rb
mvpkit-1.0.2 config/initializers/ssl.rb
mvpkit-1.0.1 config/initializers/ssl.rb
mvpkit-1.0.0 config/initializers/ssl.rb
mvpkit-0.8.1 config/initializers/ssl.rb
mvpkit-0.8.0 config/initializers/ssl.rb
minimum_viable_product-0.7.15 config/initializers/ssl.rb
minimum_viable_product-0.7.14 config/initializers/ssl.rb
minimum_viable_product-0.7.13 config/initializers/ssl.rb
minimum_viable_product-0.7.12 config/initializers/ssl.rb
minimum_viable_product-0.7.11 config/initializers/ssl.rb
minimum_viable_product-0.7.10 config/initializers/ssl.rb
minimum_viable_product-0.7.9 config/initializers/ssl.rb