0
0
Fork 0
mirror of https://github.com/nextcloud/docker.git synced 2025-06-16 16:14:47 +02:00
nextcloud-docker/18.0/fpm-alpine/config/s3.config.php
Pierre Ozoux c9fca6fe7b
quickfix
2020-06-11 12:16:44 +02:00

20 lines
780 B
PHP

<?php
if (getenv('OBJECTSTORE_S3_HOST')) {
$CONFIG = array (
'objectstore' => array(
'class' => '\\OC\\Files\\ObjectStore\\S3',
'arguments' => array(
'bucket' => getenv('OBJECTSTORE_S3_BUCKET'),
'autocreate' => getenv('OBJECTSTORE_S3_AUTOCREATE') ?: false,
'key' => getenv('OBJECTSTORE_S3_KEY'),
'secret' => getenv('OBJECTSTORE_S3_SECRET'),
'hostname' => getenv('OBJECTSTORE_S3_HOST'),
'port' => getenv('OBJECTSTORE_S3_PORT'),
'use_ssl' => getenv('OBJECTSTORE_S3_SSL') ?: true,
'region' => getenv('OBJECTSTORE_S3_REGION') ?: "optional",
// required for some non Amazon S3 implementations
'use_path_style' => getenv('OBJECTSTORE_S3_USEPATH_STYLE') ?: true,
),
),
);
}