[Rubygems-developers] How to Setup Secure GemServer

Eric Hodel drbrain at segment7.net
Wed Jul 16 22:41:02 EDT 2008


On Jul 15, 2008, at 12:13 PM, Luis Lavena wrote:
> On Tue, Jul 15, 2008 at 8:36 PM, Jim Freeze <rubygems at freeze.org>  
> wrote:
>> Does anyone have some instructions on how to setup a secure gem  
>> server.
>> Basically, we want to be able to run our own gemserver behind https
>> and require some type of authentication.
>>
>> I've never setup https, so don't know if this is trivial with gem  
>> server or not.
>
> Serving Gems is just like serving stating files, regarding
> autorization I think you need to add that to the source url:
>
> gem sources --add proto://user:password@host.domain.com/folder/

I heard a rumor that URI was going to stop supporting user:pass@ in  
1.9, but it seems to still work now.

> (don't forget the last slash after folder).

Fixed in 1.2 :)  In 1.1 I managed to refactor the rest of the code  
enough to make this easy to fix.


More information about the Rubygems-developers mailing list