From e2c8feefdeaa3a4d4bf02a035ad2b366ed809d85 Mon Sep 17 00:00:00 2001 From: Rodrigo Aguilera Date: Fri, 23 Mar 2018 21:44:03 +0100 Subject: [PATCH] Config redis and smtp using env vars. --- .config/redis.config.php | 10 ++++++++++ .config/smtp.config.php | 15 +++++++++++++++ 11.0/apache/config/redis.config.php | 10 ++++++++++ 11.0/apache/config/smtp.config.php | 15 +++++++++++++++ 11.0/fpm-alpine/config/redis.config.php | 10 ++++++++++ 11.0/fpm-alpine/config/smtp.config.php | 15 +++++++++++++++ 11.0/fpm/config/redis.config.php | 10 ++++++++++ 11.0/fpm/config/smtp.config.php | 15 +++++++++++++++ 12.0/apache/config/redis.config.php | 10 ++++++++++ 12.0/apache/config/smtp.config.php | 15 +++++++++++++++ 12.0/fpm-alpine/config/redis.config.php | 10 ++++++++++ 12.0/fpm-alpine/config/smtp.config.php | 15 +++++++++++++++ 12.0/fpm/config/redis.config.php | 10 ++++++++++ 12.0/fpm/config/smtp.config.php | 15 +++++++++++++++ 13.0/apache/config/redis.config.php | 10 ++++++++++ 13.0/apache/config/smtp.config.php | 15 +++++++++++++++ 13.0/fpm-alpine/config/redis.config.php | 10 ++++++++++ 13.0/fpm-alpine/config/smtp.config.php | 15 +++++++++++++++ 13.0/fpm/config/redis.config.php | 10 ++++++++++ 13.0/fpm/config/smtp.config.php | 15 +++++++++++++++ 20 files changed, 250 insertions(+) create mode 100644 .config/redis.config.php create mode 100644 .config/smtp.config.php create mode 100644 11.0/apache/config/redis.config.php create mode 100644 11.0/apache/config/smtp.config.php create mode 100644 11.0/fpm-alpine/config/redis.config.php create mode 100644 11.0/fpm-alpine/config/smtp.config.php create mode 100644 11.0/fpm/config/redis.config.php create mode 100644 11.0/fpm/config/smtp.config.php create mode 100644 12.0/apache/config/redis.config.php create mode 100644 12.0/apache/config/smtp.config.php create mode 100644 12.0/fpm-alpine/config/redis.config.php create mode 100644 12.0/fpm-alpine/config/smtp.config.php create mode 100644 12.0/fpm/config/redis.config.php create mode 100644 12.0/fpm/config/smtp.config.php create mode 100644 13.0/apache/config/redis.config.php create mode 100644 13.0/apache/config/smtp.config.php create mode 100644 13.0/fpm-alpine/config/redis.config.php create mode 100644 13.0/fpm-alpine/config/smtp.config.php create mode 100644 13.0/fpm/config/redis.config.php create mode 100644 13.0/fpm/config/smtp.config.php diff --git a/.config/redis.config.php b/.config/redis.config.php new file mode 100644 index 00000000..890cf2f2 --- /dev/null +++ b/.config/redis.config.php @@ -0,0 +1,10 @@ + '\OC\Memcache\Redis', + 'redis' => array( + 'host' => getenv('REDIS_HOST'), + 'port' => getenv('REDIS_PORT') ?: 6379, + ), + ); +} \ No newline at end of file diff --git a/.config/smtp.config.php b/.config/smtp.config.php new file mode 100644 index 00000000..45a36dea --- /dev/null +++ b/.config/smtp.config.php @@ -0,0 +1,15 @@ + getenv('MAIL_SMTPMODE'), + 'mail_smtphost' => getenv('MAIL_SMTPHOST'), + 'mail_smtpport' => getenv('MAIL_SMTPPORT'), + 'mail_smtpsecure' => getenv('MAIL_SMTPSECURE'), + 'mail_smtpauth' => getenv('MAIL_SMTPAUTH'), + 'mail_smtpauthtype' => getenv('MAIL_SMTPAUTHTYPE'), + 'mail_smtpname' => getenv('MAIL_SMTPNAME'), + 'mail_smtppassword' => getenv('MAIL_SMTPPASSWORD'), + 'mail_from_address' => getenv('MAIL_FROM_ADDRESS'), + 'mail_domain' => getenv('MAIL_DOMAIN'), + ); +} \ No newline at end of file diff --git a/11.0/apache/config/redis.config.php b/11.0/apache/config/redis.config.php new file mode 100644 index 00000000..890cf2f2 --- /dev/null +++ b/11.0/apache/config/redis.config.php @@ -0,0 +1,10 @@ + '\OC\Memcache\Redis', + 'redis' => array( + 'host' => getenv('REDIS_HOST'), + 'port' => getenv('REDIS_PORT') ?: 6379, + ), + ); +} \ No newline at end of file diff --git a/11.0/apache/config/smtp.config.php b/11.0/apache/config/smtp.config.php new file mode 100644 index 00000000..45a36dea --- /dev/null +++ b/11.0/apache/config/smtp.config.php @@ -0,0 +1,15 @@ + getenv('MAIL_SMTPMODE'), + 'mail_smtphost' => getenv('MAIL_SMTPHOST'), + 'mail_smtpport' => getenv('MAIL_SMTPPORT'), + 'mail_smtpsecure' => getenv('MAIL_SMTPSECURE'), + 'mail_smtpauth' => getenv('MAIL_SMTPAUTH'), + 'mail_smtpauthtype' => getenv('MAIL_SMTPAUTHTYPE'), + 'mail_smtpname' => getenv('MAIL_SMTPNAME'), + 'mail_smtppassword' => getenv('MAIL_SMTPPASSWORD'), + 'mail_from_address' => getenv('MAIL_FROM_ADDRESS'), + 'mail_domain' => getenv('MAIL_DOMAIN'), + ); +} \ No newline at end of file diff --git a/11.0/fpm-alpine/config/redis.config.php b/11.0/fpm-alpine/config/redis.config.php new file mode 100644 index 00000000..890cf2f2 --- /dev/null +++ b/11.0/fpm-alpine/config/redis.config.php @@ -0,0 +1,10 @@ + '\OC\Memcache\Redis', + 'redis' => array( + 'host' => getenv('REDIS_HOST'), + 'port' => getenv('REDIS_PORT') ?: 6379, + ), + ); +} \ No newline at end of file diff --git a/11.0/fpm-alpine/config/smtp.config.php b/11.0/fpm-alpine/config/smtp.config.php new file mode 100644 index 00000000..45a36dea --- /dev/null +++ b/11.0/fpm-alpine/config/smtp.config.php @@ -0,0 +1,15 @@ + getenv('MAIL_SMTPMODE'), + 'mail_smtphost' => getenv('MAIL_SMTPHOST'), + 'mail_smtpport' => getenv('MAIL_SMTPPORT'), + 'mail_smtpsecure' => getenv('MAIL_SMTPSECURE'), + 'mail_smtpauth' => getenv('MAIL_SMTPAUTH'), + 'mail_smtpauthtype' => getenv('MAIL_SMTPAUTHTYPE'), + 'mail_smtpname' => getenv('MAIL_SMTPNAME'), + 'mail_smtppassword' => getenv('MAIL_SMTPPASSWORD'), + 'mail_from_address' => getenv('MAIL_FROM_ADDRESS'), + 'mail_domain' => getenv('MAIL_DOMAIN'), + ); +} \ No newline at end of file diff --git a/11.0/fpm/config/redis.config.php b/11.0/fpm/config/redis.config.php new file mode 100644 index 00000000..890cf2f2 --- /dev/null +++ b/11.0/fpm/config/redis.config.php @@ -0,0 +1,10 @@ + '\OC\Memcache\Redis', + 'redis' => array( + 'host' => getenv('REDIS_HOST'), + 'port' => getenv('REDIS_PORT') ?: 6379, + ), + ); +} \ No newline at end of file diff --git a/11.0/fpm/config/smtp.config.php b/11.0/fpm/config/smtp.config.php new file mode 100644 index 00000000..45a36dea --- /dev/null +++ b/11.0/fpm/config/smtp.config.php @@ -0,0 +1,15 @@ + getenv('MAIL_SMTPMODE'), + 'mail_smtphost' => getenv('MAIL_SMTPHOST'), + 'mail_smtpport' => getenv('MAIL_SMTPPORT'), + 'mail_smtpsecure' => getenv('MAIL_SMTPSECURE'), + 'mail_smtpauth' => getenv('MAIL_SMTPAUTH'), + 'mail_smtpauthtype' => getenv('MAIL_SMTPAUTHTYPE'), + 'mail_smtpname' => getenv('MAIL_SMTPNAME'), + 'mail_smtppassword' => getenv('MAIL_SMTPPASSWORD'), + 'mail_from_address' => getenv('MAIL_FROM_ADDRESS'), + 'mail_domain' => getenv('MAIL_DOMAIN'), + ); +} \ No newline at end of file diff --git a/12.0/apache/config/redis.config.php b/12.0/apache/config/redis.config.php new file mode 100644 index 00000000..890cf2f2 --- /dev/null +++ b/12.0/apache/config/redis.config.php @@ -0,0 +1,10 @@ + '\OC\Memcache\Redis', + 'redis' => array( + 'host' => getenv('REDIS_HOST'), + 'port' => getenv('REDIS_PORT') ?: 6379, + ), + ); +} \ No newline at end of file diff --git a/12.0/apache/config/smtp.config.php b/12.0/apache/config/smtp.config.php new file mode 100644 index 00000000..45a36dea --- /dev/null +++ b/12.0/apache/config/smtp.config.php @@ -0,0 +1,15 @@ + getenv('MAIL_SMTPMODE'), + 'mail_smtphost' => getenv('MAIL_SMTPHOST'), + 'mail_smtpport' => getenv('MAIL_SMTPPORT'), + 'mail_smtpsecure' => getenv('MAIL_SMTPSECURE'), + 'mail_smtpauth' => getenv('MAIL_SMTPAUTH'), + 'mail_smtpauthtype' => getenv('MAIL_SMTPAUTHTYPE'), + 'mail_smtpname' => getenv('MAIL_SMTPNAME'), + 'mail_smtppassword' => getenv('MAIL_SMTPPASSWORD'), + 'mail_from_address' => getenv('MAIL_FROM_ADDRESS'), + 'mail_domain' => getenv('MAIL_DOMAIN'), + ); +} \ No newline at end of file diff --git a/12.0/fpm-alpine/config/redis.config.php b/12.0/fpm-alpine/config/redis.config.php new file mode 100644 index 00000000..890cf2f2 --- /dev/null +++ b/12.0/fpm-alpine/config/redis.config.php @@ -0,0 +1,10 @@ + '\OC\Memcache\Redis', + 'redis' => array( + 'host' => getenv('REDIS_HOST'), + 'port' => getenv('REDIS_PORT') ?: 6379, + ), + ); +} \ No newline at end of file diff --git a/12.0/fpm-alpine/config/smtp.config.php b/12.0/fpm-alpine/config/smtp.config.php new file mode 100644 index 00000000..45a36dea --- /dev/null +++ b/12.0/fpm-alpine/config/smtp.config.php @@ -0,0 +1,15 @@ + getenv('MAIL_SMTPMODE'), + 'mail_smtphost' => getenv('MAIL_SMTPHOST'), + 'mail_smtpport' => getenv('MAIL_SMTPPORT'), + 'mail_smtpsecure' => getenv('MAIL_SMTPSECURE'), + 'mail_smtpauth' => getenv('MAIL_SMTPAUTH'), + 'mail_smtpauthtype' => getenv('MAIL_SMTPAUTHTYPE'), + 'mail_smtpname' => getenv('MAIL_SMTPNAME'), + 'mail_smtppassword' => getenv('MAIL_SMTPPASSWORD'), + 'mail_from_address' => getenv('MAIL_FROM_ADDRESS'), + 'mail_domain' => getenv('MAIL_DOMAIN'), + ); +} \ No newline at end of file diff --git a/12.0/fpm/config/redis.config.php b/12.0/fpm/config/redis.config.php new file mode 100644 index 00000000..890cf2f2 --- /dev/null +++ b/12.0/fpm/config/redis.config.php @@ -0,0 +1,10 @@ + '\OC\Memcache\Redis', + 'redis' => array( + 'host' => getenv('REDIS_HOST'), + 'port' => getenv('REDIS_PORT') ?: 6379, + ), + ); +} \ No newline at end of file diff --git a/12.0/fpm/config/smtp.config.php b/12.0/fpm/config/smtp.config.php new file mode 100644 index 00000000..45a36dea --- /dev/null +++ b/12.0/fpm/config/smtp.config.php @@ -0,0 +1,15 @@ + getenv('MAIL_SMTPMODE'), + 'mail_smtphost' => getenv('MAIL_SMTPHOST'), + 'mail_smtpport' => getenv('MAIL_SMTPPORT'), + 'mail_smtpsecure' => getenv('MAIL_SMTPSECURE'), + 'mail_smtpauth' => getenv('MAIL_SMTPAUTH'), + 'mail_smtpauthtype' => getenv('MAIL_SMTPAUTHTYPE'), + 'mail_smtpname' => getenv('MAIL_SMTPNAME'), + 'mail_smtppassword' => getenv('MAIL_SMTPPASSWORD'), + 'mail_from_address' => getenv('MAIL_FROM_ADDRESS'), + 'mail_domain' => getenv('MAIL_DOMAIN'), + ); +} \ No newline at end of file diff --git a/13.0/apache/config/redis.config.php b/13.0/apache/config/redis.config.php new file mode 100644 index 00000000..890cf2f2 --- /dev/null +++ b/13.0/apache/config/redis.config.php @@ -0,0 +1,10 @@ + '\OC\Memcache\Redis', + 'redis' => array( + 'host' => getenv('REDIS_HOST'), + 'port' => getenv('REDIS_PORT') ?: 6379, + ), + ); +} \ No newline at end of file diff --git a/13.0/apache/config/smtp.config.php b/13.0/apache/config/smtp.config.php new file mode 100644 index 00000000..45a36dea --- /dev/null +++ b/13.0/apache/config/smtp.config.php @@ -0,0 +1,15 @@ + getenv('MAIL_SMTPMODE'), + 'mail_smtphost' => getenv('MAIL_SMTPHOST'), + 'mail_smtpport' => getenv('MAIL_SMTPPORT'), + 'mail_smtpsecure' => getenv('MAIL_SMTPSECURE'), + 'mail_smtpauth' => getenv('MAIL_SMTPAUTH'), + 'mail_smtpauthtype' => getenv('MAIL_SMTPAUTHTYPE'), + 'mail_smtpname' => getenv('MAIL_SMTPNAME'), + 'mail_smtppassword' => getenv('MAIL_SMTPPASSWORD'), + 'mail_from_address' => getenv('MAIL_FROM_ADDRESS'), + 'mail_domain' => getenv('MAIL_DOMAIN'), + ); +} \ No newline at end of file diff --git a/13.0/fpm-alpine/config/redis.config.php b/13.0/fpm-alpine/config/redis.config.php new file mode 100644 index 00000000..890cf2f2 --- /dev/null +++ b/13.0/fpm-alpine/config/redis.config.php @@ -0,0 +1,10 @@ + '\OC\Memcache\Redis', + 'redis' => array( + 'host' => getenv('REDIS_HOST'), + 'port' => getenv('REDIS_PORT') ?: 6379, + ), + ); +} \ No newline at end of file diff --git a/13.0/fpm-alpine/config/smtp.config.php b/13.0/fpm-alpine/config/smtp.config.php new file mode 100644 index 00000000..45a36dea --- /dev/null +++ b/13.0/fpm-alpine/config/smtp.config.php @@ -0,0 +1,15 @@ + getenv('MAIL_SMTPMODE'), + 'mail_smtphost' => getenv('MAIL_SMTPHOST'), + 'mail_smtpport' => getenv('MAIL_SMTPPORT'), + 'mail_smtpsecure' => getenv('MAIL_SMTPSECURE'), + 'mail_smtpauth' => getenv('MAIL_SMTPAUTH'), + 'mail_smtpauthtype' => getenv('MAIL_SMTPAUTHTYPE'), + 'mail_smtpname' => getenv('MAIL_SMTPNAME'), + 'mail_smtppassword' => getenv('MAIL_SMTPPASSWORD'), + 'mail_from_address' => getenv('MAIL_FROM_ADDRESS'), + 'mail_domain' => getenv('MAIL_DOMAIN'), + ); +} \ No newline at end of file diff --git a/13.0/fpm/config/redis.config.php b/13.0/fpm/config/redis.config.php new file mode 100644 index 00000000..890cf2f2 --- /dev/null +++ b/13.0/fpm/config/redis.config.php @@ -0,0 +1,10 @@ + '\OC\Memcache\Redis', + 'redis' => array( + 'host' => getenv('REDIS_HOST'), + 'port' => getenv('REDIS_PORT') ?: 6379, + ), + ); +} \ No newline at end of file diff --git a/13.0/fpm/config/smtp.config.php b/13.0/fpm/config/smtp.config.php new file mode 100644 index 00000000..45a36dea --- /dev/null +++ b/13.0/fpm/config/smtp.config.php @@ -0,0 +1,15 @@ + getenv('MAIL_SMTPMODE'), + 'mail_smtphost' => getenv('MAIL_SMTPHOST'), + 'mail_smtpport' => getenv('MAIL_SMTPPORT'), + 'mail_smtpsecure' => getenv('MAIL_SMTPSECURE'), + 'mail_smtpauth' => getenv('MAIL_SMTPAUTH'), + 'mail_smtpauthtype' => getenv('MAIL_SMTPAUTHTYPE'), + 'mail_smtpname' => getenv('MAIL_SMTPNAME'), + 'mail_smtppassword' => getenv('MAIL_SMTPPASSWORD'), + 'mail_from_address' => getenv('MAIL_FROM_ADDRESS'), + 'mail_domain' => getenv('MAIL_DOMAIN'), + ); +} \ No newline at end of file