forked from moodle/moodle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.php
33 lines (25 loc) · 1.16 KB
/
config.php
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
<?php
// Moodle configuration file
unset($CFG);
global $CFG;
$CFG = new stdClass();
$CFG->dbtype = getenv('DATABASE_TYPE'); // 'pgsql'
$CFG->dblibrary = 'native'; // 'native' only at the moment
$CFG->dbhost = getenv('DATABASE_HOST'); // eg 'localhost' or 'db.isp.com' or IP
$CFG->dbname = getenv('DATABASE_NAME'); // database name, eg moodle
$CFG->dbuser = getenv('DATABASE_USER'); // your database username
$CFG->dbpass = getenv('DATABASE_PASSWORD'); // your database password
$CFG->prefix = 'mdl_'; // prefix to use for all table names
$CFG->dboptions = array(
'dbpersist' => 0,
'dbsocket' => '',
'dbport' => getenv('DATABASE_PORT'),
); // For all database config settings see https://docs.moodle.org/en/Database_settings
$CFG->wwwroot = getenv('WWWROOT'); // 'http://example.com/moodle';
$CFG->dataroot = getenv('DATAROOT'); // '/home/example/moodledata';
$CFG->admin = 'admin';
$CFG->directorypermissions = 0777;
$CFG->admin = 'admin';
require_once(__DIR__ . '/lib/setup.php'); // Do not edit
// There is no php closing tag in this file,
// it is intentional because it prevents trailing whitespace problems!