Skip to content

Commit

Permalink
Merge pull request #1 from kfeng0806/master
Browse files Browse the repository at this point in the history
Set custom service name
  • Loading branch information
alexandre-butynski authored Aug 29, 2017
2 parents aa71dab + d535568 commit bc8735d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
15 changes: 8 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,14 @@ To configure a new Laravel storage disk on OpenStack, provide a configuration li
'disks' => [

'openstack' => [
'driver' => 'openstack',
'username' => env('OS_USERNAME', ''),
'password' => env('OS_PASSWORD', ''),
'container' => env('OS_CONTAINER', ''),
'tenant_name' => env('OS_TENANT_NAME', ''),
'endpoint' => env('OS_ENDPOINT', ''),
'region' => env('OS_REGION', ''),
'driver' => 'openstack',
'username' => env('OS_USERNAME', ''),
'password' => env('OS_PASSWORD', ''),
'container' => env('OS_CONTAINER', ''),
'tenant_name' => env('OS_TENANT_NAME', ''),
'endpoint' => env('OS_ENDPOINT', ''),
'service_name' => env('OS_SERVICE_NAME', 'swift'),
'region' => env('OS_REGION', ''),
],

],
Expand Down
2 changes: 1 addition & 1 deletion src/Neoxia/Filesystem/OpenStackServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public function boot()
'tenantName' => $config['tenant_name'],
]);

$store = $client->objectStoreService('swift', $config['region']);
$store = $client->objectStoreService($config['service_name'], $config['region']);
$container = $store->getContainer($config['container']);

return new Filesystem(new RackspaceAdapter($container));
Expand Down

0 comments on commit bc8735d

Please sign in to comment.