Sha256: 914076dc9b1b55249e7a97adbd28130985cdcb618e9a7535b0f98b37b2bded98

Contents?: true

Size: 281 Bytes

Versions: 9

Compression:

Stored size: 281 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
}

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
minimum_viable_product-0.0.37 config/initializers/ssl.rb
minimum_viable_product-0.0.36 config/initializers/ssl.rb
minimum_viable_product-0.0.35 config/initializers/ssl.rb
minimum_viable_product-0.0.34 config/initializers/ssl.rb
minimum_viable_product-0.0.33 config/initializers/ssl.rb
minimum_viable_product-0.0.32 config/initializers/ssl.rb
minimum_viable_product-0.0.30 config/initializers/ssl.rb
minimum_viable_product-0.0.29 config/initializers/ssl.rb
minimum_viable_product-0.0.27 config/initializers/ssl.rb