Created
September 19, 2014 20:13
-
-
Save withhawaii/4527bfdbe4fd1d52f67a to your computer and use it in GitHub Desktop.
Setting up Paperclip to upload files into OpenStack object storage
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Paperclip::Attachment.default_options.update( | |
{ | |
:path => ":class/:attachment/:hash/:style.:extension", | |
:storage => :fog, | |
:fog_credentials => { | |
:provider => 'OpenStack', | |
:openstack_username => 'user', | |
:openstack_api_key => 'password', | |
:openstack_auth_url => 'auth_url', | |
}, | |
:fog_directory => "bucketname", | |
:fog_host => "object_store_endpoint_url", | |
:fog_public => true | |
} | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment