0
0
Fork 0
mirror of https://github.com/nextcloud/docker.git synced 2025-04-21 03:06:08 +02:00

Compare commits

...

4 commits

Author SHA1 Message Date
Melvin Suter
c693b9c5d3
Merge 5a8fe00c14 into 16727bbbde 2025-03-18 12:41:03 +09:00
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
Melvin mngmt-02
d13714b973 backwards compatibility
Signed-off-by: Melvin mngmt-02 <melvin@suter.dev>
Signed-off-by: Melvin Suter <github@suter.dev>
2023-10-13 16:37:05 +02:00
Melvin mngmt-02
a16b4f71cc making NEXTCLOUD_TRUSTED_DOMAINS after install
Signed-off-by: Melvin mngmt-02 <melvin@suter.dev>
Signed-off-by: Melvin Suter <github@suter.dev>
2023-10-13 16:37:05 +02:00

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