[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:
parent
415cb507b5
commit
fb8f5b71a8
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue