Browse Source

make url type configurable

remotes/origin/ldap-read-range-support
Jörn Friedrich Dreyer 10 years ago
parent
commit
eae8500a86
  1. 2
      config/config.sample.php
  2. 6
      lib/private/files/objectstore/swift.php

2
config/config.sample.php

@ -974,6 +974,8 @@ $CONFIG = array(
// dev-/trystack uses swift by default, the lib defaults to 'cloudFiles'
// if omitted
'serviceName' => 'swift',
// The Interface / url Type, optional
'urlType' => 'internal'
),
),

6
lib/private/files/objectstore/swift.php

@ -77,7 +77,11 @@ class Swift implements IObjectStore {
$serviceName = $this->params['serviceName'];
}
$this->objectStoreService = $this->client->objectStoreService($serviceName, $this->params['region']);
$urlType = null;
if ($this->params['urlType']) {
$urlType = $this->params['urlType'];
}
$this->objectStoreService = $this->client->objectStoreService($serviceName, $this->params['region'], $urlType);
try {
$this->container = $this->objectStoreService->getContainer($this->params['container']);

Loading…
Cancel
Save