mirror of
https://github.com/nextcloud/all-in-one.git
synced 2026-04-23 16:47:05 -04:00
28 lines
714 B
PHP
28 lines
714 B
PHP
<?php
|
|
$CONFIG = array (
|
|
'apps_paths' => array (
|
|
0 => array (
|
|
'path' => '/var/www/html/apps',
|
|
'url' => '/apps',
|
|
'writable' => false,
|
|
),
|
|
1 => array (
|
|
'path' => '/var/www/html/custom_apps',
|
|
'url' => '/custom_apps',
|
|
'writable' => true,
|
|
),
|
|
),
|
|
);
|
|
if (getenv('APPS_ALLOWLIST')) {
|
|
$CONFIG['appsallowlist'] = explode(" ", getenv('APPS_ALLOWLIST'));
|
|
}
|
|
|
|
$appStoreUrl = getenv('NEXTCLOUD_APP_STORE_URL');
|
|
if ($appStoreUrl) {
|
|
if ($appStoreUrl === 'no') {
|
|
$CONFIG['appstoreenabled '] = false;
|
|
} else {
|
|
$CONFIG['appstoreurl'] = getenv('NEXTCLOUD_APP_STORE_URL');
|
|
}
|
|
}
|