mirror of
https://github.com/bitnami/containers.git
synced 2026-04-02 15:27:45 +08:00
[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:
@@ -410,9 +410,9 @@ if (isset(\$_SERVER['HTTPS']) \&\& \$_SERVER['HTTPS'] == 'on') {\\
|
|||||||
#########################
|
#########################
|
||||||
moodle_configure_reverseproxy() {
|
moodle_configure_reverseproxy() {
|
||||||
# Checking the reverseproxy setting values
|
# 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
|
# 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
|
true
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -410,9 +410,9 @@ if (isset(\$_SERVER['HTTPS']) \&\& \$_SERVER['HTTPS'] == 'on') {\\
|
|||||||
#########################
|
#########################
|
||||||
moodle_configure_reverseproxy() {
|
moodle_configure_reverseproxy() {
|
||||||
# Checking the reverseproxy setting values
|
# 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
|
# 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
|
true
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user