sesh/django-up

Use nginx to redirect HTTP traffic to HTTPS

sesh opened this issue · 0 comments

sesh commented

Can / should be achieved with return 301 https://$host$request_uri.

if ($http_x_forwarded_proto != 'https') {
  return 301 https://$host$request_uri;
}

(or just put a return inside the listen 80 block)