Skip to content

Commit

Permalink
Added documentation for using fog with Rackspace UK
Browse files Browse the repository at this point in the history
  • Loading branch information
Liborio Cannici committed Aug 11, 2011
1 parent b22bc3f commit 420be33
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -487,6 +487,21 @@ class AvatarUploader < CarrierWave::Uploader::Base
end
```

The UK Rackspace Cloud doesn’t have the same auth server as the US Cloud.
In case you are using Rackspace UK, you have to adjust the Auth URL:

``` ruby
CarrierWave.configure do |config|
config.fog_credentials = {
:provider => 'Rackspace',
:rackspace_username => 'xxxxxx',
:rackspace_api_key => 'yyyyyy'
:rackspace_auth_url => 'lon.auth.api.rackspacecloud.com'
}
config.fog_directory = 'name_of_directory'
end
```

That's it! You can still use the `CarrierWave::Uploader#url` method to return
the url to the file on Rackspace Cloud Files.

Expand Down

0 comments on commit 420be33

Please sign in to comment.