Initial commit
This commit is contained in:
29
config.php
Normal file
29
config.php
Normal 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!
|
||||
Reference in New Issue
Block a user