mirror of
https://github.com/nextcloud/server.git
synced 2026-06-09 08:44:07 -04:00
make url type configurable
This commit is contained in:
parent
acce1638e5
commit
eae8500a86
2 changed files with 7 additions and 1 deletions
|
|
@ -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'
|
||||
),
|
||||
),
|
||||
|
||||
|
|
|
|||
|
|
@ -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…
Reference in a new issue