Skip to content

Commit

Permalink
Adding support for configuring redis dbindex value
Browse files Browse the repository at this point in the history
Signed-off-by: Jan Zalar [email protected]
  • Loading branch information
janz committed Sep 2, 2024
1 parent e6d0240 commit 7392082
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions 29/apache/config/redis.config.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,8 @@
} elseif (getenv('REDIS_HOST')[0] != '/') {
$CONFIG['redis']['port'] = 6379;
}
if (getenv('REDIS_DBINDEX') !== false) {
$CONFIG['redis']['dbindex'] = (int) getenv('REDIS_DBINDEX');
}

}
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@ If you want to use Redis you have to create a separate [Redis](https://hub.docke
- `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_PASSWORD` (not set by default) Redis password
- `REDIS_DBINDEX`(not set by default) Value for dbindex config value

The use of Redis is recommended to prevent file locking problems. See the examples for further instructions.

Expand Down

0 comments on commit 7392082

Please sign in to comment.