adjustment of the configuration parameters

This commit is contained in:
Christian Berendt 2013-10-22 13:34:24 +02:00
parent 67779680a6
commit f0d04f3ac6
2 changed files with 24 additions and 13 deletions

View File

@ -84,14 +84,21 @@ class OC_Mount_Config {
'token' => '#token'),
'custom' => 'google');
$backends['\OC\Files\Storage\SWIFT']=array(
'backend' => 'OpenStack Swift',
'configuration' => array(
'host' => 'URL',
'user' => 'Username',
'token' => '*Token',
'root' => '&Root',
'secure' => '!Secure ftps://'));
if(OC_Mount_Config::checkcurl()) {
$backends['\OC\Files\Storage\Swift'] = array(
'backend' => 'OpenStack Object Storage',
'configuration' => array(
'user' => 'Username',
'bucket' => 'Bucket',
'region' => 'Region',
'key' => '*API Key (Rackspace Cloud Files)',
'tenant' => 'Tenantname (OpenStack Object Storage)',
'password' => '*Password (OpenStack Object Storage)',
'service_name' => 'Service Name (OpenStack Object Storage)',
'url' => 'URL of identity endpoint (OpenStack Object Storage)'
)
);
}
if (!OC_Util::runningOnWindows()) {
if (OC_Mount_Config::checksmbclient()) {

View File

@ -31,11 +31,15 @@ return array(
'token' => '',
),
'swift'=>array(
'run'=>false,
'user'=>'test:tester',
'token'=>'testing',
'host'=>'localhost.local:8080/auth',
'root'=>'/',
'run' => false,
'user' => 'test',
'bucket' => 'test',
'region' => 'DFW',
'key' => 'test', //to be used only with Rackspace Cloud Files
//'tenant' => 'test', //to be used only with OpenStack Object Storage
//'password' => 'test', //to be use only with OpenStack Object Storage
//'service_name' => 'swift', //should be 'swift' for OpenStack Object Storage and 'cloudFiles' for Rackspace Cloud Files (default value)
//'url' => 'https://identity.api.rackspacecloud.com/v2.0/' //to be used with Rackspace Cloud Files and OpenStack Object Storage
),
'smb'=>array(
'run'=>false,