diff --git a/config.php b/config.php index 7aab211..c8167f4 100644 --- a/config.php +++ b/config.php @@ -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! diff --git a/docker-compose.yml b/docker-compose.yml index 01d74bc..9c52346 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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