Skip to content

Commit

Permalink
Add ability to toggle sslproxy setting
Browse files Browse the repository at this point in the history
  • Loading branch information
williammck committed Jun 16, 2023
1 parent ad4d7d6 commit 671374a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ You'll also need to configure some way of running Moodle's cron job, such as a c
### Environment variables

* `WWW_ROOT` - The URL of the Moodle instance, used for generating links in emails and other places. Defaults to `http://localhost`.
* `SSL_PROXY` - The presence of this environment variable will enable the `sslproxy` setting in Moodle.
* `DB_HOST` - The hostname of the database server. Defaults to `127.0.0.1`.
* `DB_PORT` - The port of the database server. Defaults to `3306`.
* `DB_DATABASE` - The name of the database to use. Defaults to `moodle`.
Expand Down
1 change: 1 addition & 0 deletions config.php
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@
*/

$CFG->wwwroot = getenv('WWW_ROOT') ?: 'http://localhost';
$CFG->sslproxy = getenv('SSL_PROXY') !== false;

$CFG->dataroot = getenv('DATA_ROOT') ?: '';
$CFG->directorypermissions = 0777;
Expand Down

0 comments on commit 671374a

Please sign in to comment.