summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.config/redis.config.php1
-rw-r--r--README.md1
2 files changed, 2 insertions, 0 deletions
diff --git a/.config/redis.config.php b/.config/redis.config.php
index 8f4b7ec7..5df799f2 100644
--- a/.config/redis.config.php
+++ b/.config/redis.config.php
@@ -5,6 +5,7 @@ if (getenv('REDIS_HOST')) {
'memcache.locking' => '\OC\Memcache\Redis',
'redis' => array(
'host' => getenv('REDIS_HOST'),
+ 'port' => getenv('REDIS_HOST_PORT') ?: 6379,
),
);
}
diff --git a/README.md b/README.md
index 72b42f11..23e2fa65 100644
--- a/README.md
+++ b/README.md
@@ -133,6 +133,7 @@ The install and update script is only triggered when a default command is used (
If you want to use Redis you have to create a seperate [Redis](https://hub.docker.com/_/redis/) container in your setup / in your docker-compose file. To inform Nextcloud about the Redis container add:
- `REDIS_HOST` (not set by default) Name of Redis container
+- `REDIS_HOST_PORT` (default: _6379_) Optional port for Redis, only use for external Redis servers that run on non-standard ports.
The use of Redis is recommended to prevent file locking problems. See the examples for further instructions.