forked from moodle/moodle
-
Notifications
You must be signed in to change notification settings - Fork 113
Expand file tree
/
Copy pathconfig.php
More file actions
29 lines (23 loc) · 767 Bytes
/
Copy pathconfig.php
File metadata and controls
29 lines (23 loc) · 767 Bytes
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
<?php // Moodle configuration file
unset($CFG);
global $CFG;
$CFG = new stdClass();
$CFG->dbtype = getenv('DATABASE_TYPE');
$CFG->dblibrary = 'native';
$CFG->dbhost = getenv('DATABASE_HOST');
$CFG->dbname = getenv('DATABASE_NAME');
$CFG->dbuser = getenv('DATABASE_USER');
$CFG->dbpass = getenv('DATABASE_PASSWORD');
$CFG->prefix = 'mdl_';
$CFG->dboptions = array (
'dbpersist' => 0,
'dbport' => getenv('DATABASE_PORT'),
'dbsocket' => '',
);
$CFG->wwwroot = getenv('WWWROOT');
$CFG->dataroot = getenv('DATAROOT');
$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!