if ($scheme = http) { return 307 https://$http_host$request_uri; }