openedx-unsupported / configuration

A collection of edx configuration scripts and utilities that edx.org uses to deploy openedx.
GNU Affero General Public License v3.0
823 stars 969 forks source link

fix: Stop insecure redirect when S3 hosting off #6983

Closed jdmulloy closed 1 year ago

jdmulloy commented 1 year ago

This code was meant to be a no-op with PROSPECTUS_S3_HOSTING_PROXY_ENABLED off, but instead it adds location / {} to nginx, which causes nginx to produce redirects to http://hostname/url/ if a trailing slash is omitted.

Configuration Pull Request

Make sure that the following steps are done before merging: