Skip to content
This repository was archived by the owner on Jul 13, 2023. It is now read-only.
This repository was archived by the owner on Jul 13, 2023. It is now read-only.

Paperclip with Fog / Ceph #1577

Description

@mpearrow

Paperclip support for Fog does not appear to allow for use of non-Amazon servers. For example, I can use the following Ruby + Fog gem code to successfully write to my Ceph FS:

require 'fog'

Excon.defaults[:ssl_verify_peer] = false

conn = Fog::Storage.new({
   :aws_access_key_id => 'xxx',
   :aws_secret_access_key => 'xxx',
   :host => 'ceph-host',
   :path_style => true,
   :provider => "AWS",
})

This works just fine. I can't figure out how to do this in Paperclip, but if I use the following code, I can tell from tcpdump and the resulting error that my app is talking to Amazon, not the host I have specified:

has_attached_file :videofile,
  :storage => :fog,
  :fog_credentials => { 
      :aws_access_key_id => 'xxx', 
      :aws_secret_access_key => 'xxx', 
      :provider => 'AWS'},
  :fog_public => true,
  :fog_directory => 'replay',
  :fog_host => 'my-hostname',

Is there a way to cause Paperclip to use something other than AWS S3?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions