Initial commit

This commit is contained in:
2025-12-07 16:18:55 +01:00
commit 7f678cd999
20 changed files with 5911 additions and 0 deletions

29
config.php Normal file
View File

@@ -0,0 +1,29 @@
<?php // Moodle configuration file
unset($CFG);
global $CFG;
$CFG = new stdClass();
$CFG->dbtype = getenv('MOODLE_DB_TYPE') ?: 'mysqli';
$CFG->dblibrary = 'native';
$CFG->dbhost = getenv('MOODLE_DB_HOST') ?: 'localhost';
$CFG->dbname = getenv('MOODLE_DB_NAME') ?: 'moodle';
$CFG->dbuser = getenv('MOODLE_DB_USER') ?: 'moodleuser';
$CFG->dbpass = getenv('MOODLE_DB_PASSWORD') ?: 'password';
$CFG->prefix = 'mdl_';
$CFG->dboptions = array (
'dbpersist' => 0,
'dbport' => getenv('MOODLE_DB_PORT') ?: '',
'dbsocket' => '',
);
$CFG->wwwroot = getenv('MOODLE_WWWROOT') ?: 'http://localhost';
$CFG->dataroot = getenv('MOODLE_DATAROOT') ?: '/var/www/moodledata';
$CFG->admin = 'admin';
$CFG->directorypermissions = 0777;
require_once(__DIR__ . '/lib/setup.php');
// There is no php closing tag in this file,
// it is intentional because it prevents trailing whitespace problems!