2
0
Fork 0
mirror of https://github.com/friendica/docker synced 2024-05-18 21:26:42 +02:00
docker/.config/01redis.config.php
Philipp Holzer 841a0b438b
Add dynamic config compatibility
- Use APCu cache as default caching mechanism
- Add explicit redis environment variables for redis lock-support
- Add a lot of environment variables, which aren't part of admin-page
- Add possibility to disable URL & E-Mail validation (for demo-page)
- Dynamically copy /config/ content without overwriting existing one

Add opcache support for performance reason
Add multi-core support for php extensions install

Bump redis version to 5.0.1 (last stable)

Exclude /log/ directory during sync (to avoid deleting logs)
2019-07-19 17:37:44 +02:00

14 lines
348 B
PHP

<?php
if (getenv('REDIS_HOST')) {
return [
'system' => [
'lock_driver' => 'redis',
'redis_host' => getenv('REDIS_HOST'),
'redis_port' => (getenv('REDIS_PORT') ? getenv('REDIS_PORT') : ''),
'redis_password' => (getenv('REDIS_PW') ? getenv('REDIS_PW') : ''),
'redis_db' => (getenv('REDIS_DB') ? getenv('REDIS_DB') : 0),
],
];
}