diff options
author | Tilo Spannagel <development@tilosp.de> | 2019-02-07 12:20:53 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-02-07 12:20:53 +0100 |
commit | b9ae3256ad5a38f37f4f195ddf965f4b2f408615 (patch) | |
tree | a1401ac506bfbdb52530b82af442d1c9187105b8 /14.0 | |
parent | 6d7be410e0a09a1a08e49762c7a7901e8bda49f3 (diff) | |
parent | e0de4ab28516a09423e5bb8630bfa93cf1de1bba (diff) |
Merge pull request #600 from marceljd/redis-env-vars
Set Redis through environment variables
Diffstat (limited to '14.0')
-rw-r--r-- | 14.0/apache/config/redis.config.php | 12 | ||||
-rw-r--r-- | 14.0/fpm-alpine/config/redis.config.php | 12 | ||||
-rw-r--r-- | 14.0/fpm/config/redis.config.php | 12 |
3 files changed, 36 insertions, 0 deletions
diff --git a/14.0/apache/config/redis.config.php b/14.0/apache/config/redis.config.php new file mode 100644 index 00000000..5df799f2 --- /dev/null +++ b/14.0/apache/config/redis.config.php @@ -0,0 +1,12 @@ +<?php +if (getenv('REDIS_HOST')) { + $CONFIG = array ( + 'memcache.distributed' => '\OC\Memcache\Redis', + 'memcache.locking' => '\OC\Memcache\Redis', + 'redis' => array( + 'host' => getenv('REDIS_HOST'), + 'port' => getenv('REDIS_HOST_PORT') ?: 6379, + ), + ); +} + diff --git a/14.0/fpm-alpine/config/redis.config.php b/14.0/fpm-alpine/config/redis.config.php new file mode 100644 index 00000000..5df799f2 --- /dev/null +++ b/14.0/fpm-alpine/config/redis.config.php @@ -0,0 +1,12 @@ +<?php +if (getenv('REDIS_HOST')) { + $CONFIG = array ( + 'memcache.distributed' => '\OC\Memcache\Redis', + 'memcache.locking' => '\OC\Memcache\Redis', + 'redis' => array( + 'host' => getenv('REDIS_HOST'), + 'port' => getenv('REDIS_HOST_PORT') ?: 6379, + ), + ); +} + diff --git a/14.0/fpm/config/redis.config.php b/14.0/fpm/config/redis.config.php new file mode 100644 index 00000000..5df799f2 --- /dev/null +++ b/14.0/fpm/config/redis.config.php @@ -0,0 +1,12 @@ +<?php +if (getenv('REDIS_HOST')) { + $CONFIG = array ( + 'memcache.distributed' => '\OC\Memcache\Redis', + 'memcache.locking' => '\OC\Memcache\Redis', + 'redis' => array( + 'host' => getenv('REDIS_HOST'), + 'port' => getenv('REDIS_HOST_PORT') ?: 6379, + ), + ); +} + |