Merge 5a8fe00c14 into 7e1fba34d7
This commit is contained in:
commit
4d42fdbd65
11
.config/trusteddomains.config.php
Normal file
11
.config/trusteddomains.config.php
Normal file
@ -0,0 +1,11 @@
|
||||
<?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'))))
|
||||
);
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user