mirror of
https://github.com/nextcloud/docker.git
synced 2025-03-15 19:05:09 +01:00
Create redis.config.php
set Redis via environment variables
This commit is contained in:
parent
b95484b409
commit
4e15e8f457
1 changed files with 10 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,
|
||||||
|
),
|
||||||
|
);
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue