mirror of
https://codeberg.org/icewind/nextcloud-config-parser.git
synced 2026-06-03 16:44:09 +02:00
fix parsing with new default comment
This commit is contained in:
parent
20d09d186d
commit
1da941262e
4 changed files with 65 additions and 2 deletions
31
tests/configs/comment_example.php
Normal file
31
tests/configs/comment_example.php
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* WARNING
|
||||
*
|
||||
* This file gets modified by automatic processes and all lines that are not
|
||||
* active code (ie. comments) are lost during that process.
|
||||
*
|
||||
* If you want to document things with comments or use constants add your settings
|
||||
* in a '<NAME>.config.php' file which will be included and rendered into this file.
|
||||
*
|
||||
* Example:
|
||||
* <?php
|
||||
* $CONFIG = [];
|
||||
*
|
||||
* See also: https://docs.nextcloud.com/server/latest/admin_manual/configuration_server/config_sample_php_parameters.html#multiple-merged-configuration-files
|
||||
*/
|
||||
|
||||
$CONFIG = [
|
||||
"overwrite.cli.url" => "https://cloud.example.com",
|
||||
"dbtype" => "mysql",
|
||||
"dbname" => "nextcloud",
|
||||
"dbhost" => "127.0.0.1",
|
||||
"dbport" => "",
|
||||
"dbtableprefix" => "oc_",
|
||||
"dbuser" => "nextcloud",
|
||||
"dbpassword" => "secret",
|
||||
"redis" => [
|
||||
"host" => "localhost",
|
||||
],
|
||||
];
|
||||
Loading…
Add table
Add a link
Reference in a new issue