mirror of
https://github.com/friendica/docker
synced 2025-01-22 06:58:48 +01:00
841a0b438b
- 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)
13 lines
348 B
PHP
13 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),
|
|
],
|
|
];
|
|
}
|