From db2c4ba34b80ced75b162f3c394826097c7032e0 Mon Sep 17 00:00:00 2001 From: Olusesan Ameye Date: Wed, 9 Oct 2024 04:13:37 +0000 Subject: [PATCH] Reverse proxy configuration --- config.php | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 config.php diff --git a/config.php b/config.php new file mode 100644 index 00000000..1737c5ce --- /dev/null +++ b/config.php @@ -0,0 +1,34 @@ +dbtype = 'mysqli'; +$CFG->dblibrary = 'native'; +$CFG->dbhost = '10.10.33.60'; +$CFG->dbname = 'learning_coregrade'; +$CFG->dbuser = 'learning_coregrade'; +$CFG->dbpass = 'learning_coregrade'; +$CFG->prefix = 'mdl_'; +$CFG->dboptions = array ( + 'dbpersist' => 0, + 'dbport' => '', + 'dbsocket' => '', + 'dbcollation' => 'utf8mb4_0900_ai_ci', +); + +$CFG->wwwroot = 'https://learning.coregrade.com'; +//$CFG->wwwroot = 'http://172.16.4.50:8900'; +$CFG->dataroot = '/var/www/moodledata'; +$CFG->admin = 'admin'; + +$CFG->directorypermissions = 0777; + +$CFG->reverseproxy = true; +$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!