mirror of
https://github.com/friendica/friendica
synced 2024-11-09 16:22:56 +00:00
34 lines
851 B
PHP
34 lines
851 B
PHP
<?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' => '/tmp/friendica.pid',
|
|
|
|
'logfile' => '/var/www/html/friendica.log',
|
|
'loglevel' => 'notice',
|
|
],
|
|
'storage' => [
|
|
'filesystem_path' => '/var/www/html/storage',
|
|
],
|
|
];
|
|
|
|
if (!empty(getenv('FRIENDICA_NO_VALIDATION'))) {
|
|
$config['system']['disable_url_validation'] = true;
|
|
$config['system']['disable_email_validation'] = true;
|
|
}
|
|
|
|
if (!empty(getenv('SMTP_DOMAIN'))) {
|
|
$smtp_from = !empty(getenv('SMTP_FROM')) ? getenv('SMTP_FROM') : 'no-reply';
|
|
|
|
$config['config']['sender_email'] = $smtp_from . "@" . getenv('SMTP_DOMAIN');
|
|
}
|
|
|
|
return $config;
|