title: DigitalOcean Spaces + Refile isn't working
body: <p>I'm trying to integrate Spaces using <strong>refile/s3</strong> because I thought it would be the best approach to integrate Spaces easiest. But I'm running into some errors. The first error is the following: </p>
  
  <pre><code>Aws::Errors::NoSuchEndpointError (Encountered a `SocketError` while attempting to connect to: 
    https://bluebird-docs-feature.s3.nyc3.amazonaws.com/cache/5057974609d11435f333e99b1f2896dae159fd4c978a2710a945caedb2e3
  </code></pre>
  
  <p>Here is my <strong>config/initializers/refile.rb</strong> file:</p>
  
  <pre><code>require "refile/s3"
  
  aws = {
    access_key_id: Rails.application.secrets.digitalocean_spaces_key,
    secret_access_key: Rails.application.secrets.digitalocean_spaces_secret,
    region: "nyc3",
    bucket: Rails.application.secrets.digitalocean_spaces_bucket
        }
  
    Refile.cache = Refile::S3.new(prefix: "cache", **aws)
    Refile.store = Refile::S3.new(prefix: "store", **aws)
  </code></pre>
  
  <p>My <strong>secrets.yml</strong> file:</p>
  
  <pre><code>digitalocean_spaces_key: XYZ
  digitalocean_spaces_secret: XYZ
  digitalocean_spaces_bucket: XYZ
  </code></pre>
  
  <p>I have these gems included for refile:</p>
  
  <pre><code>gem "refile-s3"
  gem 'refile', github: 'refile/refile', require: 'refile/rails'
  gem 'refile-mini_magick', github: 'refile/refile-mini_magick'
  gem 'sinatra', github: 'sinatra/sinatra', branch: 'master'
  </code></pre>
  
  <p>I don't have any other AWS or DigitalOcean gems installed.</p>
  
  <p>Thank you ahead of time. If you need more info just ask!</p>