mirror of
https://github.com/friendica/docker
synced 2026-04-14 21:57:46 +02:00
Release 2020.03
This commit is contained in:
parent
cc54dd72b3
commit
ad99a98540
72 changed files with 40 additions and 1423 deletions
12
2020.06-dev/apache/config/00apcu.config.php
Normal file
12
2020.06-dev/apache/config/00apcu.config.php
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* If nothing else set, use APCu as a caching driver (best performance for local caching)
|
||||
*/
|
||||
|
||||
return [
|
||||
'system' => [
|
||||
'cache_driver' => 'apcu',
|
||||
'session_handler' => 'cache',
|
||||
],
|
||||
];
|
||||
15
2020.06-dev/apache/config/01redis.config.php
Normal file
15
2020.06-dev/apache/config/01redis.config.php
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
<?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),
|
||||
],
|
||||
];
|
||||
} else {
|
||||
return [];
|
||||
}
|
||||
62
2020.06-dev/apache/config/zz-docker.config.php
Normal file
62
2020.06-dev/apache/config/zz-docker.config.php
Normal file
|
|
@ -0,0 +1,62 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* Fallback config to make it possible overwriting config values
|
||||
* because of docker environment variables
|
||||
*
|
||||
* This doesn't affect DB configurations, but will replace other config values
|
||||
*/
|
||||
|
||||
$config = [
|
||||
'system' => [
|
||||
// Necessary because otherwise the daemon isn't working
|
||||
'pidfile' => '/var/run/friendica.pid',
|
||||
|
||||
'logfile' => '/var/www/html/friendica.log',
|
||||
'loglevel' => 'notice',
|
||||
],
|
||||
'storage' => [
|
||||
'filesystem_path' => '/var/www/html/storage',
|
||||
],
|
||||
];
|
||||
|
||||
if (getenv('FRIENDICA_TZ')) {
|
||||
$config['config']['timezone'] = getenv('FRIENDICA_TZ');
|
||||
}
|
||||
|
||||
if (getenv('FRIENDICA_LANG')) {
|
||||
$config['config']['language'] = getenv('FRIENDICA_LANG');
|
||||
}
|
||||
|
||||
if (getenv('FRIENDICA_ADMIN_MAIL')) {
|
||||
$config['config']['admin_email'] = getenv('FRIENDICA_ADMIN_MAIL');
|
||||
}
|
||||
|
||||
if (getenv('FRIENDICA_SITENAME')) {
|
||||
$config['config']['sitename'] = getenv('FRIENDICA_SITENAME');
|
||||
}
|
||||
|
||||
if (!empty(getenv('FRIENDICA_NO_VALIDATION'))) {
|
||||
$config['system']['disable_url_validation'] = true;
|
||||
$config['system']['disable_email_validation'] = true;
|
||||
}
|
||||
|
||||
if (!empty(getenv('FRIENDICA_DATA'))) {
|
||||
$config['storage']['class'] = \Friendica\Model\Storage\Filesystem::class;
|
||||
|
||||
if (!empty(getenv('FRIENDICA_DATA_DIR'))) {
|
||||
$config['storage']['filesystem_path'] = getenv('FRIENDICA_DATA');
|
||||
}
|
||||
}
|
||||
|
||||
if (!empty(getenv('FRIENDICA_DEBUGGING'))) {
|
||||
$config['system']['debugging'] = true;
|
||||
if (!empty(getenv('FRIENDICA_LOGFILE'))) {
|
||||
$config['system']['logfile'] = getenv('FRIENDICA_LOGFILE');
|
||||
}
|
||||
if (!empty(getenv('FRIENDICA_LOGLEVEL'))) {
|
||||
$config['system']['loglevel'] = getenv('FRIENDICA_LOGLEVEL');
|
||||
}
|
||||
}
|
||||
|
||||
return $config;
|
||||
Loading…
Add table
Add a link
Reference in a new issue