0
0
Fork 0
mirror of https://github.com/nextcloud/docker.git synced 2025-06-16 16:14:47 +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

View file

@ -0,0 +1,7 @@
<?php
$CONFIG = array(
'default_language' => getenv('DEFAULT_LANGUAGE') ?: 'en',
'force_language' => getenv('FORCE_LANGUAGE') ?: false,
'default_locale' => getenv('DEFAULT_LOCALE') ?: 'en_US',
'force_locale' => getenv('FORCE_LOCALE') ?: false,
);

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,
),
),
);
}

View file

@ -11,5 +11,9 @@ if (getenv('SMTP_HOST') && getenv('MAIL_FROM_ADDRESS') && getenv('MAIL_DOMAIN'))
'mail_smtppassword' => getenv('SMTP_PASSWORD') ?: '',
'mail_from_address' => getenv('MAIL_FROM_ADDRESS'),
'mail_domain' => getenv('MAIL_DOMAIN'),
'mail_smtpdebug' => getenv('SMTP_DEBUG') ?: false,
'mail_template_class' => getenv('SMTP_TEMPLATE_CLASS') ?: '',
'mail_send_plaintext_only' => getenv('SMTP_SEND_PLAINTEXT_ONLY') ?: false,
'mail_sendmailmode' => getenv('SMTP_SENDMAIL_MODE') ?: 'smtp',
);
}