mirror of
https://github.com/nextcloud/docker.git
synced 2025-04-20 02:46:10 +02:00
Merge 5a8fe00c14
into 614be28550
This commit is contained in:
commit
5171f60de7
1 changed files with 11 additions and 0 deletions
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…
Add table
Reference in a new issue