Unverified Commit 6b817024 by Cory Lee Committed by GitHub

Removing the 403 for internal IP disclosure because it is breaking ecom (#4566)

parent 93d7741d
......@@ -10,7 +10,6 @@ server {
listen {{ edx_django_service_nginx_port }};
{% if NGINX_ENABLE_SSL %}
{% include "concerns/handle-ip-disclosure.j2" %}
rewrite ^ https://$host$request_uri? permanent;
{% else %}
{% include "concerns/handle-tls-terminated-elsewhere-redirect.j2" %}
......
{% if NGINX_REDIRECT_TO_HTTPS %}
{% include "concerns/handle-ip-disclosure.j2" %}
{% if NGINX_HTTPS_REDIRECT_STRATEGY == "scheme" %}
if ($scheme != "https")
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment