Skip to content

Commit

Permalink
[#8] Add reverseproxy option
Browse files Browse the repository at this point in the history
- added: environment variable `MOODLE_REVERSE_PROXY` configuring Moodle setting `reverseproxy`
  • Loading branch information
newlukai committed Jul 2, 2021
1 parent f3d53ec commit 1235c50
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion config.php
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ function loadenv($envName, $default = "") {
//
// Enable when setting up advanced reverse proxy load balancing configurations,
// it may be also necessary to enable this when using port forwarding.
// $CFG->reverseproxy = true;
$CFG->reverseproxy = filter_var(loadenv('MOODLE_REVERSE_PROXY', false), FILTER_VALIDATE_BOOLEAN);
//
// Enable when using external SSL appliance for performance reasons.
// Please note that site may be accessible via http: or https:, but not both!
Expand Down
1 change: 1 addition & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ services:
#- MOODLE_ADMIN_PASS=
#- MOODLE_ADMIN_EMAIL=
#- MOODLE_UPDATE=
#- MOODLE_REVERSE_PROXY=false
#- MOODLE_SSL_PROXY=false
- MOODLE_REDIS_HOST=redis
- MOODLE_REDIS_PORT=6379
Expand Down

0 comments on commit 1235c50

Please sign in to comment.