0
0
Fork 0
mirror of https://github.com/nextcloud/docker.git synced 2025-03-18 12:25:09 +01:00
nextcloud-docker/.config/trusteddomains.config.php
Melvin Suter 5a8fe00c14 Moving Config file to right dir
Signed-off-by: Melvin Suter <github@suter.dev>
2023-10-16 11:15:40 +02:00

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