This commit is contained in:
Melvin Suter 2024-04-25 03:44:52 +02:00 committed by GitHub
commit bae18a011c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 11 additions and 0 deletions

View 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'))))
);
}