From 41564649fc3c49de91c4af4a8e36c1ebf0831977 Mon Sep 17 00:00:00 2001 From: pierreozoux Date: Fri, 17 Jan 2020 15:10:12 +0100 Subject: [PATCH] Adds moar env. Signed-off-by: pierreozoux --- .../{apps.config.php => 10.apps.config.php} | 0 .config/language.config.php | 7 +++++++ .config/s3.config.php | 20 +++++++++++++++++++ .config/smtp.config.php | 4 ++++ 4 files changed, 31 insertions(+) rename .config/{apps.config.php => 10.apps.config.php} (100%) create mode 100644 .config/language.config.php create mode 100644 .config/s3.config.php diff --git a/.config/apps.config.php b/.config/10.apps.config.php similarity index 100% rename from .config/apps.config.php rename to .config/10.apps.config.php diff --git a/.config/language.config.php b/.config/language.config.php new file mode 100644 index 00000000..0528b6cf --- /dev/null +++ b/.config/language.config.php @@ -0,0 +1,7 @@ + getenv('DEFAULT_LANGUAGE') ?: 'en', + 'force_language' => getenv('FORCE_LANGUAGE') ?: false, + 'default_locale' => getenv('DEFAULT_LOCALE') ?: 'en_US', + 'force_locale' => getenv('FORCE_LOCALE') ?: false, +); diff --git a/.config/s3.config.php b/.config/s3.config.php new file mode 100644 index 00000000..a9171fdd --- /dev/null +++ b/.config/s3.config.php @@ -0,0 +1,20 @@ + 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, + ), + ), + ); +} diff --git a/.config/smtp.config.php b/.config/smtp.config.php index 59f1eaa1..6091dbcc 100644 --- a/.config/smtp.config.php +++ b/.config/smtp.config.php @@ -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', ); }