Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Really simple rubygem hosting
Ruby JavaScript

This branch is 8 commits ahead, 240 commits behind geminabox:master

Failed to load latest commit information.
data It seems to work!
lib fixed readme, added defaults, and changed options->settings in sinatr…
public When script loaded before </body>, dom:ready event is useless (DOM bu…
views Actually working now
.gitignore
README.markdown
Rakefile changed name to geminabox-secure and added http basic auth and SSL
config.ru changed name to geminabox-secure and added http basic auth and SSL
geminabox-secure.gemspec fixed readme, added defaults, and changed options->settings in sinatr…

README.markdown

Gem in a Box Secure

screen shot

Really simple secure rubygem hosting

Gem in a Box Secure is a very basic branch of the awesome Gem in a box - a simple sinatra app to allow you to host your own in-house gems. The main difference here is the secure flavor provides configurable forced SSL and HTTP basic auth.

Server Setup

gem install geminabox-secure

Create a config.ru as follows:

require "rubygems"
require "geminabox-secure"

GeminaboxSecure.data = "/var/geminabox-data" # …or wherever
GeminaboxSecure.force_ssl = true #if you want SSL redirects enabled
run GeminaboxSecure

Set environment variables for your username and password: GEMBOX_USER and GEMBOX_PASSWORD, respectively. Gem in a Box Secure defaults to "admin" and "s3cret" respectively if these are not set.

Set up your SSL certificates for your server of choice.

And finally, hook up the config.ru as you normally would (passenger, thin, unicorn, whatever floats your boat).

Client Usage

gem install geminabox-secure

gem inaboxsecure pkg/my-awesome-gem-1.0.gem

Simples!

Licence

Fork it, mod it, choose it, use it, make it better. All under the do what the fuck you want to + beer/pizza public license.

Something went wrong with that request. Please try again.