diff options
author | Tilo Spannagel <development@tilosp.de> | 2020-08-21 17:38:03 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-21 17:38:03 +0200 |
commit | 65f3f6d167defbef27d01819da34314e0569040d (patch) | |
tree | d98b370029e81cc372069b0317fae5b54b3638c8 /19.0-rc/apache/config/redis.config.php | |
parent | abe8cd69a6a3eee4952d4faea9dfbda64c4cdb2b (diff) | |
parent | 4afc60d530c971b50e9eccfccf9e41044423538c (diff) |
Merge pull request #1205 from tilosp/bot/update
Run update.sh
Diffstat (limited to '19.0-rc/apache/config/redis.config.php')
-rw-r--r-- | 19.0-rc/apache/config/redis.config.php | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/19.0-rc/apache/config/redis.config.php b/19.0-rc/apache/config/redis.config.php new file mode 100644 index 00000000..9429c901 --- /dev/null +++ b/19.0-rc/apache/config/redis.config.php @@ -0,0 +1,17 @@ +<?php +if (getenv('REDIS_HOST')) { + $CONFIG = array ( + 'memcache.distributed' => '\OC\Memcache\Redis', + 'memcache.locking' => '\OC\Memcache\Redis', + 'redis' => array( + 'host' => getenv('REDIS_HOST'), + 'password' => getenv('REDIS_HOST_PASSWORD'), + ), + ); + + if (getenv('REDIS_HOST_PORT') !== false) { + $CONFIG['redis']['port'] = (int) getenv('REDIS_HOST_PORT'); + } elseif (getenv('REDIS_HOST')[0] != '/') { + $CONFIG['redis']['port'] = 6379; + } +} |