fallback to having php parse the config file and exporting it as json

This commit is contained in:
Robin Appelman 2023-01-03 19:28:46 +01:00
commit f9486f3e70
5 changed files with 139 additions and 15 deletions

View file

@ -0,0 +1,17 @@
<?php
function get_foo(): string { return 'foo'; }
$CONFIG = [
'overwrite.cli.url' => 'https://cloud.example.com',
'dbtype' => 'mysql',
'dbname' => get_foo() . '_db',
'dbhost' => '127.0.0.1',
'dbport' => '',
'dbtableprefix' => 'oc_',
'dbuser' => 'nextcloud',
'dbpassword' => 'secret',
'redis' => [
'host' => 'localhost'
]
];