mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-02-11 06:29:15 -06:00
15 lines
332 B
PHP
15 lines
332 B
PHP
<?php
|
|
|
|
# reference: https://owncloud.dev/clients/web/deployments/oc10-app/
|
|
|
|
function getWebConfigFromEnv() {
|
|
$config = [
|
|
'web.baseUrl' => 'https://' . getenv('CLOUD_DOMAIN') . '/index.php/apps/web',
|
|
'web.rewriteLinks' => getenv('OWNCLOUD_WEB_REWRITE_LINKS') == 'true',
|
|
|
|
];
|
|
return $config;
|
|
}
|
|
|
|
$CONFIG = getWebConfigFromEnv();
|