mirror of
https://github.com/nextcloud/docker.git
synced 2025-04-19 18:36:09 +02:00
Config redis and smtp using env vars.
This commit is contained in:
parent
bb42fcfaed
commit
e2c8feefde
20 changed files with 250 additions and 0 deletions
10
.config/redis.config.php
Normal file
10
.config/redis.config.php
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
<?php
|
||||||
|
if (getenv('REDIS_HOST')) {
|
||||||
|
$CONFIG = array (
|
||||||
|
'memcache.locking' => '\OC\Memcache\Redis',
|
||||||
|
'redis' => array(
|
||||||
|
'host' => getenv('REDIS_HOST'),
|
||||||
|
'port' => getenv('REDIS_PORT') ?: 6379,
|
||||||
|
),
|
||||||
|
);
|
||||||
|
}
|
15
.config/smtp.config.php
Normal file
15
.config/smtp.config.php
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
<?php
|
||||||
|
if (getenv('MAIL_SMTPMODE') == 'smtp') {
|
||||||
|
$CONFIG = array (
|
||||||
|
'mail_smtpmode' => 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'),
|
||||||
|
);
|
||||||
|
}
|
10
11.0/apache/config/redis.config.php
Normal file
10
11.0/apache/config/redis.config.php
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
<?php
|
||||||
|
if (getenv('REDIS_HOST')) {
|
||||||
|
$CONFIG = array (
|
||||||
|
'memcache.locking' => '\OC\Memcache\Redis',
|
||||||
|
'redis' => array(
|
||||||
|
'host' => getenv('REDIS_HOST'),
|
||||||
|
'port' => getenv('REDIS_PORT') ?: 6379,
|
||||||
|
),
|
||||||
|
);
|
||||||
|
}
|
15
11.0/apache/config/smtp.config.php
Normal file
15
11.0/apache/config/smtp.config.php
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
<?php
|
||||||
|
if (getenv('MAIL_SMTPMODE') == 'smtp') {
|
||||||
|
$CONFIG = array (
|
||||||
|
'mail_smtpmode' => 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'),
|
||||||
|
);
|
||||||
|
}
|
10
11.0/fpm-alpine/config/redis.config.php
Normal file
10
11.0/fpm-alpine/config/redis.config.php
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
<?php
|
||||||
|
if (getenv('REDIS_HOST')) {
|
||||||
|
$CONFIG = array (
|
||||||
|
'memcache.locking' => '\OC\Memcache\Redis',
|
||||||
|
'redis' => array(
|
||||||
|
'host' => getenv('REDIS_HOST'),
|
||||||
|
'port' => getenv('REDIS_PORT') ?: 6379,
|
||||||
|
),
|
||||||
|
);
|
||||||
|
}
|
15
11.0/fpm-alpine/config/smtp.config.php
Normal file
15
11.0/fpm-alpine/config/smtp.config.php
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
<?php
|
||||||
|
if (getenv('MAIL_SMTPMODE') == 'smtp') {
|
||||||
|
$CONFIG = array (
|
||||||
|
'mail_smtpmode' => 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'),
|
||||||
|
);
|
||||||
|
}
|
10
11.0/fpm/config/redis.config.php
Normal file
10
11.0/fpm/config/redis.config.php
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
<?php
|
||||||
|
if (getenv('REDIS_HOST')) {
|
||||||
|
$CONFIG = array (
|
||||||
|
'memcache.locking' => '\OC\Memcache\Redis',
|
||||||
|
'redis' => array(
|
||||||
|
'host' => getenv('REDIS_HOST'),
|
||||||
|
'port' => getenv('REDIS_PORT') ?: 6379,
|
||||||
|
),
|
||||||
|
);
|
||||||
|
}
|
15
11.0/fpm/config/smtp.config.php
Normal file
15
11.0/fpm/config/smtp.config.php
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
<?php
|
||||||
|
if (getenv('MAIL_SMTPMODE') == 'smtp') {
|
||||||
|
$CONFIG = array (
|
||||||
|
'mail_smtpmode' => 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'),
|
||||||
|
);
|
||||||
|
}
|
10
12.0/apache/config/redis.config.php
Normal file
10
12.0/apache/config/redis.config.php
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
<?php
|
||||||
|
if (getenv('REDIS_HOST')) {
|
||||||
|
$CONFIG = array (
|
||||||
|
'memcache.locking' => '\OC\Memcache\Redis',
|
||||||
|
'redis' => array(
|
||||||
|
'host' => getenv('REDIS_HOST'),
|
||||||
|
'port' => getenv('REDIS_PORT') ?: 6379,
|
||||||
|
),
|
||||||
|
);
|
||||||
|
}
|
15
12.0/apache/config/smtp.config.php
Normal file
15
12.0/apache/config/smtp.config.php
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
<?php
|
||||||
|
if (getenv('MAIL_SMTPMODE') == 'smtp') {
|
||||||
|
$CONFIG = array (
|
||||||
|
'mail_smtpmode' => 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'),
|
||||||
|
);
|
||||||
|
}
|
10
12.0/fpm-alpine/config/redis.config.php
Normal file
10
12.0/fpm-alpine/config/redis.config.php
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
<?php
|
||||||
|
if (getenv('REDIS_HOST')) {
|
||||||
|
$CONFIG = array (
|
||||||
|
'memcache.locking' => '\OC\Memcache\Redis',
|
||||||
|
'redis' => array(
|
||||||
|
'host' => getenv('REDIS_HOST'),
|
||||||
|
'port' => getenv('REDIS_PORT') ?: 6379,
|
||||||
|
),
|
||||||
|
);
|
||||||
|
}
|
15
12.0/fpm-alpine/config/smtp.config.php
Normal file
15
12.0/fpm-alpine/config/smtp.config.php
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
<?php
|
||||||
|
if (getenv('MAIL_SMTPMODE') == 'smtp') {
|
||||||
|
$CONFIG = array (
|
||||||
|
'mail_smtpmode' => 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'),
|
||||||
|
);
|
||||||
|
}
|
10
12.0/fpm/config/redis.config.php
Normal file
10
12.0/fpm/config/redis.config.php
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
<?php
|
||||||
|
if (getenv('REDIS_HOST')) {
|
||||||
|
$CONFIG = array (
|
||||||
|
'memcache.locking' => '\OC\Memcache\Redis',
|
||||||
|
'redis' => array(
|
||||||
|
'host' => getenv('REDIS_HOST'),
|
||||||
|
'port' => getenv('REDIS_PORT') ?: 6379,
|
||||||
|
),
|
||||||
|
);
|
||||||
|
}
|
15
12.0/fpm/config/smtp.config.php
Normal file
15
12.0/fpm/config/smtp.config.php
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
<?php
|
||||||
|
if (getenv('MAIL_SMTPMODE') == 'smtp') {
|
||||||
|
$CONFIG = array (
|
||||||
|
'mail_smtpmode' => 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'),
|
||||||
|
);
|
||||||
|
}
|
10
13.0/apache/config/redis.config.php
Normal file
10
13.0/apache/config/redis.config.php
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
<?php
|
||||||
|
if (getenv('REDIS_HOST')) {
|
||||||
|
$CONFIG = array (
|
||||||
|
'memcache.locking' => '\OC\Memcache\Redis',
|
||||||
|
'redis' => array(
|
||||||
|
'host' => getenv('REDIS_HOST'),
|
||||||
|
'port' => getenv('REDIS_PORT') ?: 6379,
|
||||||
|
),
|
||||||
|
);
|
||||||
|
}
|
15
13.0/apache/config/smtp.config.php
Normal file
15
13.0/apache/config/smtp.config.php
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
<?php
|
||||||
|
if (getenv('MAIL_SMTPMODE') == 'smtp') {
|
||||||
|
$CONFIG = array (
|
||||||
|
'mail_smtpmode' => 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'),
|
||||||
|
);
|
||||||
|
}
|
10
13.0/fpm-alpine/config/redis.config.php
Normal file
10
13.0/fpm-alpine/config/redis.config.php
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
<?php
|
||||||
|
if (getenv('REDIS_HOST')) {
|
||||||
|
$CONFIG = array (
|
||||||
|
'memcache.locking' => '\OC\Memcache\Redis',
|
||||||
|
'redis' => array(
|
||||||
|
'host' => getenv('REDIS_HOST'),
|
||||||
|
'port' => getenv('REDIS_PORT') ?: 6379,
|
||||||
|
),
|
||||||
|
);
|
||||||
|
}
|
15
13.0/fpm-alpine/config/smtp.config.php
Normal file
15
13.0/fpm-alpine/config/smtp.config.php
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
<?php
|
||||||
|
if (getenv('MAIL_SMTPMODE') == 'smtp') {
|
||||||
|
$CONFIG = array (
|
||||||
|
'mail_smtpmode' => 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'),
|
||||||
|
);
|
||||||
|
}
|
10
13.0/fpm/config/redis.config.php
Normal file
10
13.0/fpm/config/redis.config.php
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
<?php
|
||||||
|
if (getenv('REDIS_HOST')) {
|
||||||
|
$CONFIG = array (
|
||||||
|
'memcache.locking' => '\OC\Memcache\Redis',
|
||||||
|
'redis' => array(
|
||||||
|
'host' => getenv('REDIS_HOST'),
|
||||||
|
'port' => getenv('REDIS_PORT') ?: 6379,
|
||||||
|
),
|
||||||
|
);
|
||||||
|
}
|
15
13.0/fpm/config/smtp.config.php
Normal file
15
13.0/fpm/config/smtp.config.php
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
<?php
|
||||||
|
if (getenv('MAIL_SMTPMODE') == 'smtp') {
|
||||||
|
$CONFIG = array (
|
||||||
|
'mail_smtpmode' => 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'),
|
||||||
|
);
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue