0
0
Fork 0
mirror of https://github.com/nextcloud/docker.git synced 2025-07-21 22:58:05 +02:00

Compare commits

...

2 commits

Author SHA1 Message Date
Hagen
b7e9274452
Merge 4bcd068a62 into 08ac24880c 2025-01-09 23:01:45 +00:00
hagene
4bcd068a62
Add REDIS_HOST_USER variable to specify a redis user
Signed-off-by: hagene <hagene@uio.no>
2025-01-09 16:50:31 +01:00
2 changed files with 2 additions and 0 deletions

View file

@ -5,6 +5,7 @@ if (getenv('REDIS_HOST')) {
'memcache.locking' => '\OC\Memcache\Redis',
'redis' => array(
'host' => getenv('REDIS_HOST'),
if (getenv('REDIS_HOST_USER')) { 'user' => getenv('REDIS_HOST_USER'), }
'password' => getenv('REDIS_HOST_PASSWORD_FILE') ? trim(file_get_contents(getenv('REDIS_HOST_PASSWORD_FILE'))) : (string) getenv('REDIS_HOST_PASSWORD'),
),
);

View file

@ -236,6 +236,7 @@ To use Redis for memory caching as well as PHP session storage, specify the foll
- `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.
- `REDIS_HOST_USER` (not set by default) Optional username for Redis, only use for external Redis servers that require a user.
- `REDIS_HOST_PASSWORD` (not set by default) Redis password
Check the [Nextcloud documentation](https://docs.nextcloud.com/server/latest/admin_manual/configuration_server/caching_configuration.html) for more information.