Commit b020fa7c by arbabnazar

DEVOPS-3094 - Require HTTPS access to insights.edx.org

parent e1527a00
......@@ -52,5 +52,13 @@ location @proxy_to_app {
proxy_redirect off;
proxy_pass http://programs_app_server;
}
}
# Forward to HTTPS if we're an HTTP request...
if ($http_x_forwarded_proto = "http") {
set $do_redirect "true";
}
# Run our actual redirect...
if ($do_redirect = "true") {
rewrite ^ https://$host$request_uri? permanent;
}
}
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