Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Carrierwave + Selectel
CarrierWave.configure do |config|
if Rails.env.development? || Rails.env.test? = :file
else = :fog
config.fog_credentials = {
:provider => 'OpenStack',
:openstack_auth_url => '',
:openstack_username => Rails.application.secrets.openstack_username,
:openstack_api_key => Rails.application.secrets.openstack_api_key
config.fog_directory = Rails.application.secrets.container # required
config.fog_public = true # optional, defaults to true
config.fog_attributes = {'Cache-Control'=>'max-age=315576000'} # optional, defaults to {}

This comment has been minimized.

Copy link

@leemour leemour commented Oct 8, 2018

I updated the credentials to work with latest fog-openstack version and v2 or v3 OpenStack Keystone auth on Selectel

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment