Browse Source

Fix Paperclip::Fog always responds Not Found in OpenStack-v2 like ConoHa (#5155)

pull/4/head
Nishi, Keisuke 6 years ago
committed by Eugen Rochko
parent
commit
83ffc4dc07
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      config/initializers/paperclip.rb

+ 2
- 1
config/initializers/paperclip.rb View File

@ -48,6 +48,7 @@ elsif ENV['SWIFT_ENABLED'] == 'true'
provider: 'OpenStack',
openstack_username: ENV.fetch('SWIFT_USERNAME'),
openstack_project_name: ENV.fetch('SWIFT_TENANT'),
openstack_tenant: ENV.fetch('SWIFT_TENANT'), # Some OpenStack-v2 ignores project_name but needs tenant
openstack_api_key: ENV.fetch('SWIFT_PASSWORD'),
openstack_auth_url: ENV.fetch('SWIFT_AUTH_URL'),
openstack_domain_name: ENV['SWIFT_DOMAIN_NAME'] || 'default',
@ -55,7 +56,7 @@ elsif ENV['SWIFT_ENABLED'] == 'true'
openstack_cache_ttl: ENV['SWIFT_CACHE_TTL'] || 60,
},
fog_directory: ENV.fetch('SWIFT_CONTAINER'),
fog_host: ENV.fetch('SWIFT_OBJECT_URL'),
fog_host: ENV['SWIFT_OBJECT_URL'],
fog_public: true
)
else

Loading…
Cancel
Save