2012-10-27 09:22:00 +00:00
|
|
|
<?php
|
2015-03-19 08:07:29 +00:00
|
|
|
$CONFIG = [
|
|
|
|
'appstoreenabled' => false,
|
|
|
|
'apps_paths' => [
|
|
|
|
[
|
|
|
|
'path' => OC::$SERVERROOT . '/apps',
|
|
|
|
'url' => '/apps',
|
|
|
|
'writable' => true,
|
|
|
|
],
|
|
|
|
],
|
|
|
|
];
|
2013-10-14 22:29:47 +00:00
|
|
|
|
2015-03-19 08:07:29 +00:00
|
|
|
if (is_dir(OC::$SERVERROOT.'/apps2')) {
|
|
|
|
$CONFIG['apps_paths'][] = [
|
|
|
|
'path' => OC::$SERVERROOT . '/apps2',
|
|
|
|
'url' => '/apps2',
|
|
|
|
'writable' => false,
|
|
|
|
];
|
|
|
|
}
|
|
|
|
|
2016-11-16 11:43:38 +00:00
|
|
|
if (getenv('OBJECT_STORE') === 's3') {
|
|
|
|
$CONFIG['objectstore'] = [
|
|
|
|
'class' => 'OC\\Files\\ObjectStore\\S3',
|
|
|
|
'arguments' => array(
|
|
|
|
'bucket' => 'nextcloud',
|
|
|
|
'autocreate' => true,
|
|
|
|
'key' => 'dummy',
|
|
|
|
'secret' => 'dummy',
|
2017-08-17 07:40:12 +00:00
|
|
|
'hostname' => getenv('DRONE') === 'true' ? 'fake-s3' : 'localhost',
|
2016-11-16 11:43:38 +00:00
|
|
|
'port' => 4569,
|
|
|
|
'use_ssl' => false,
|
|
|
|
// required for some non amazon s3 implementations
|
|
|
|
'use_path_style' => true
|
|
|
|
)
|
|
|
|
];
|
|
|
|
}
|
2018-02-07 16:16:54 +00:00
|
|
|
if (getenv('OBJECT_STORE') === 'swift') {
|
|
|
|
$swiftHost = getenv('DRONE') === 'true' ? 'dockswift' : 'localhost';
|
|
|
|
$CONFIG['objectstore'] = [
|
|
|
|
'class' => 'OC\\Files\\ObjectStore\\Swift',
|
|
|
|
'arguments' => array(
|
|
|
|
'autocreate' => true,
|
|
|
|
'username' => 'swift',
|
|
|
|
'tenantName' => 'service',
|
|
|
|
'password' => 'swift',
|
|
|
|
'serviceName' => 'swift',
|
|
|
|
'region' => 'regionOne',
|
|
|
|
'url' => "http://$swiftHost:5000/v2.0",
|
|
|
|
'bucket' => 'nextcloud'
|
|
|
|
)
|
|
|
|
];
|
|
|
|
}
|