[bitnami/moodle] Fix MOODLE_SSLPROXY and MOODLE_REVERSEPROXY (#6700)

* Fix MOODLE_SSLPROXY and MOODLE_REVERSEPROXY

Signed-off-by: Karel Vlk <vlk.charles@gmail.com>

* Fix MOODLE_SSLPROXY and MOODLE_REVERSEPROXY for Moodle 3

Signed-off-by: Karel Vlk <vlk.charles@gmail.com>

Signed-off-by: Karel Vlk <vlk.charles@gmail.com>
This commit is contained in:
Karel Vlk 2022-09-22 12:40:18 +02:00 committed by GitHub
parent 415cb507b5
commit fb8f5b71a8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -410,9 +410,9 @@ if (isset(\$_SERVER['HTTPS']) \&\& \$_SERVER['HTTPS'] == 'on') {\\
#########################
moodle_configure_reverseproxy() {
# Checking the reverseproxy setting values
is_boolean_yes "$MOODLE_REVERSEPROXY" && echo "\$CFG->reverseproxy = true;" >>"$MOODLE_CONF_FILE"
is_boolean_yes "$MOODLE_REVERSEPROXY" && sed -i '/^require/i $CFG->reverseproxy = true;' "$MOODLE_CONF_FILE"
# Checking the sslproxy setting values
is_boolean_yes "$MOODLE_SSLPROXY" && echo "\$CFG->sslproxy = true;" >>"$MOODLE_CONF_FILE"
is_boolean_yes "$MOODLE_SSLPROXY" && sed -i '/^require/i $CFG->sslproxy = true;' "$MOODLE_CONF_FILE"
true
}

View File

@ -410,9 +410,9 @@ if (isset(\$_SERVER['HTTPS']) \&\& \$_SERVER['HTTPS'] == 'on') {\\
#########################
moodle_configure_reverseproxy() {
# Checking the reverseproxy setting values
is_boolean_yes "$MOODLE_REVERSEPROXY" && echo "\$CFG->reverseproxy = true;" >>"$MOODLE_CONF_FILE"
is_boolean_yes "$MOODLE_REVERSEPROXY" && sed -i '/^require/i $CFG->reverseproxy = true;' "$MOODLE_CONF_FILE"
# Checking the sslproxy setting values
is_boolean_yes "$MOODLE_SSLPROXY" && echo "\$CFG->sslproxy = true;" >>"$MOODLE_CONF_FILE"
is_boolean_yes "$MOODLE_SSLPROXY" && sed -i '/^require/i $CFG->sslproxy = true;' "$MOODLE_CONF_FILE"
true
}