mirror of
https://github.com/nextcloud/docker.git
synced 2025-05-22 23:30:54 +02:00
Moving Config file to right dir
Signed-off-by: Melvin Suter <github@suter.dev>
This commit is contained in:
parent
d13714b973
commit
5a8fe00c14
9 changed files with 0 additions and 88 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
Add a link
Reference in a new issue