forked from catalyst/docker_moodle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
moodle-config
46 lines (35 loc) · 1.22 KB
/
moodle-config
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<?php // Moodle configuration file
unset($CFG);
global $CFG;
$CFG = new stdClass();
$CFG->dbtype = 'pgsql';
$CFG->dblibrary = 'native';
$CFG->dbhost = 'db';
$CFG->dbname = 'moodle';
$CFG->dbuser = 'moodle_user';
$CFG->dbpass = 'password';
$CFG->prefix = 'mdl_';
$CFG->dboptions = array (
'dbpersist' => 0,
'dbport' => '',
'dbsocket' => '',
);
$CFG->phpunit_dbtype = 'pgsql';
$CFG->phpunit_dblibrary = 'native';
$CFG->phpunit_dbhost = 'test-db';
$CFG->phpunit_dbname = 'moodle';
$CFG->phpunit_dbuser = 'moodle_user';
$CFG->phpunit_dbpass = 'password';
$CFG->phpunit_prefix = 'phpu_';
$CFG->phpunit_dataroot = '/var/lib/testsitedata';
$CFG->wwwroot = 'http://localhost';
$CFG->dataroot = '/var/lib/sitedata';
$CFG->admin = 'admin';
//Force a debugging mode regardless the settings in the site administration
@error_reporting(E_ALL | E_STRICT); // NOT FOR PRODUCTION SERVERS!
$CFG->debug = (E_ALL | E_STRICT); // === DEBUG_DEVELOPER - NOT FOR PRODUCTION SERVERS!
$CFG->noemailever = true;
$CFG->directorypermissions = 0777;
require_once(dirname(__FILE__) . '/lib/setup.php');
// There is no php closing tag in this file,
// it is intentional because it prevents trailing whitespace problems!