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