-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.php
More file actions
32 lines (25 loc) · 850 Bytes
/
config.php
File metadata and controls
32 lines (25 loc) · 850 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
30
31
32
<?php // Moodle configuration file
unset($CFG);
global $CFG;
$CFG = new stdClass();
$CFG->dbtype = 'mysqli';
$CFG->dblibrary = 'native';
$CFG->dbhost = getenv("MYSQL_ADDON_HOST");
$CFG->dbname = getenv("MYSQL_ADDON_DB");
$CFG->dbuser = getenv("MYSQL_ADDON_USER");
$CFG->dbpass = getenv("MYSQL_ADDON_PASSWORD");
$CFG->prefix = 'mdl_';
$CFG->dboptions = array (
'dbpersist' => 0,
'dbport' => getenv("MYSQL_ADDON_PORT"),
'dbsocket' => '',
'dbcollation' => 'utf8mb4_0900_ai_ci',
);
$CFG->wwwroot = getenv("URL");
$CFG->dataroot = getenv("APP_HOME") . '/moodledata';
$CFG->admin = getenv("ADMIN");
$CFG->directorypermissions = 0777;
$CFG->sslproxy = true;
require_once(__DIR__ . '/lib/setup.php');
// There is no php closing tag in this file,
// it is intentional because it prevents trailing whitespace problems!