0
0
Fork 0
mirror of https://github.com/nextcloud/docker.git synced 2025-06-17 08:34:48 +02:00

Adds moar env.

Signed-off-by: pierreozoux <pierre@ozoux.net>
This commit is contained in:
pierreozoux 2020-01-17 15:10:12 +01:00
parent 94b9fa723f
commit 41564649fc
4 changed files with 31 additions and 0 deletions

20
.config/s3.config.php Normal file
View file

@ -0,0 +1,20 @@
<?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') ?: true,
'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,
),
),
);
}