OVH and openstack for files and picture
1
Not solved Solved
11 months ago

I didn't found anything about openstack with carrierwave or paperclip. Have you some tips to do it properly ?

11 months ago

You should use fog gem and fog_openstack plugin . Your config should look like this gist :

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
  }
)
Cancel
Submit your answer