From b6b9499252cd572f3bb903f2cb04d36ea880573f Mon Sep 17 00:00:00 2001 From: GitHub Workflow Date: Tue, 6 Jul 2021 17:51:01 +0000 Subject: Runs update.sh --- 22.0/fpm/config/redis.config.php | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 22.0/fpm/config/redis.config.php (limited to '22.0/fpm/config/redis.config.php') diff --git a/22.0/fpm/config/redis.config.php b/22.0/fpm/config/redis.config.php new file mode 100644 index 00000000..a5fde3c7 --- /dev/null +++ b/22.0/fpm/config/redis.config.php @@ -0,0 +1,17 @@ + '\OC\Memcache\Redis', + 'memcache.locking' => '\OC\Memcache\Redis', + 'redis' => array( + 'host' => getenv('REDIS_HOST'), + 'password' => (string) 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; + } +} -- cgit v1.2.3