]> git.mxchange.org Git - friendica.git/commitdiff
use own local.config.php for CI
authorPhilipp <admin@philipp.info>
Sun, 12 Feb 2023 13:38:43 +0000 (14:38 +0100)
committerPhilipp <admin@philipp.info>
Sun, 12 Feb 2023 13:38:43 +0000 (14:38 +0100)
mods/local.config.ci.php [new file with mode: 0644]
tests/Util/VFSTrait.php

diff --git a/mods/local.config.ci.php b/mods/local.config.ci.php
new file mode 100644 (file)
index 0000000..fac4d80
--- /dev/null
@@ -0,0 +1,47 @@
+<?php
+
+// Local configuration
+
+/* If automatic system installation fails:
+ *
+ * Copy this file to local.config.php
+ *
+ * Why local.config.php? Because it contains sensitive information which could
+ * give somebody complete control of your database. Apache's default
+ * configuration will interpret any .php file as a script and won't show the values
+ *
+ * Then set the following for your MySQL installation
+ */
+
+return [
+       'database' => [
+               'hostname' => 'localhost',
+               'username' => 'friendica',
+               'password' => 'friendica',
+               'database' => 'friendica',
+               'charset' => 'utf8mb4',
+       ],
+
+       // ****************************************************************
+       // The configuration below will be overruled by the admin panel.
+       // Changes made below will only have an effect if the database does
+       // not contain any configuration for the friendica system.
+       // ****************************************************************
+
+       'config' => [
+               'hostname' => 'friendica.local',
+               'admin_email' => 'admin@friendica.local',
+               'sitename' => 'Friendica Social Network',
+               'register_policy' => \Friendica\Module\Register::OPEN,
+               'register_text' => '',
+       ],
+       'system' => [
+               'default_timezone' => 'UTC',
+               'language' => 'en',
+               'ssl_policy' => \Friendica\App\BaseURL::SSL_POLICY_SELFSIGN,
+               'url' => 'https://friendica.local',
+               'urlpath' => '',
+               // don't start unexpected worker.php processes during test!
+               'worker_dont_fork' => true,
+       ],
+];
index 3a203588cf450b4ef179f241b1b5927b7d54dfb1..a98b7925de44895fba08b31e92d107747d2b6f83 100644 (file)
@@ -54,7 +54,7 @@ trait VFSTrait
                $this->setConfigFile('static' . DIRECTORY_SEPARATOR . 'defaults.config.php', true);
                $this->setConfigFile('static' . DIRECTORY_SEPARATOR . 'settings.config.php', true);
                $this->setConfigFile(
-                       'mods' . DIRECTORY_SEPARATOR . 'local.config.vagrant.php',
+                       'mods' . DIRECTORY_SEPARATOR . 'local.config.ci.php',
                        false, 'local.config.php'
                );
        }