mirror of
https://github.com/nextcloud/docker.git
synced 2024-11-18 02:56:42 +01:00
d13714b973
Signed-off-by: Melvin mngmt-02 <melvin@suter.dev> Signed-off-by: Melvin Suter <github@suter.dev>
11 lines
345 B
PHP
11 lines
345 B
PHP
<?php
|
|
|
|
if (getenv('NEXTCLOUD_TRUSTED_DOMAINS')) {
|
|
// Get originaly configured values
|
|
include(__DIR__.'/config.php');
|
|
|
|
// Add environment variables
|
|
$CONFIG = array(
|
|
'trusted_domains' => array_merge($CONFIG['trusted_domains'],array_map(function($domain){return trim($domain);},explode(",",getenv('NEXTCLOUD_TRUSTED_DOMAINS'))))
|
|
);
|
|
}
|