github
Advanced Search
  • Home
  • Pricing and Signup
  • Explore GitHub
  • Blog
  • Login

dhh / asset-hosting-with-minimum-ssl

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
  • Pull Request
  • Download Source
    • 69
    • 7
  • Source
  • Commits
  • Network (7)
  • Issues (0)
  • Downloads (0)
  • Wiki (1)
  • Graphs
  • Branch: master

click here to add a description

click here to add a homepage

  • Branches (1)
    • master ✓
  • Tags (0)
Sending Request…
Enable Donations

Pledgie Donations

Once activated, we'll place the following badge in your repository's detail box:
Pledgie_example
This service is courtesy of Pledgie.

Rails plugin for picking a non-ssl asset host as often as possible — Read more

  cancel

  cancel
  • Private
  • Read-Only
  • HTTP Read-Only

This URL has Read+Write access

Added note about edge rails requirement 
dhh (author)
Thu Nov 27 10:48:01 -0800 2008
commit  a9d2d26c4be1b341a63cc8c932057969912cc4ec
tree    d69d14f5b5dae81022f482d5f6645e295fc439d8
parent  cb2e3721d9c7394c9153079cd943678bc57cc0e4
asset-hosting-with-minimum-ssl /
name age
history
message
file MIT-LICENSE Thu Nov 27 08:21:32 -0800 2008 Initial commit [dhh]
file README Thu Nov 27 10:48:01 -0800 2008 Added note about edge rails requirement [dhh]
file Rakefile Thu Nov 27 08:21:32 -0800 2008 Initial commit [dhh]
directory lib/ Thu Nov 27 08:21:32 -0800 2008 Initial commit [dhh]
directory test/ Thu Nov 27 08:21:32 -0800 2008 Initial commit [dhh]
README
AssetHostingWithMinimumSsl
==========================

It's slow to serve assets that doesn't need to be secure over SSL. This plugin will let you send assets over non-SSL as 
often as possible.

Note: This plugin requires Rails with a revision of 229f959d15e451890db60dbb73f8565079977814 or newer (Nov 27, 2008).


Example
=======

In your config/production.rb

config.action_controller.asset_host = AssetHostingWithMinimumSsl.new(
  "http://assets%d.example.com", # will serve non-SSL assetts on http://assets[1-4].example.com
  "https://assets1.example.com"  # will serve SSL assets on https://assets1.example.com
)


Copyright (c) 2008 David Heinemeier Hansson, released under the MIT license
Blog | Support | Training | Contact | API | Status | Twitter | Help | Security
© 2010 GitHub Inc. All rights reserved. | Terms of Service | Privacy Policy
Powered by the Dedicated Servers and
Cloud Computing of Rackspace Hosting®
Dedicated Server