change http to https in NGINX

According to nginx pitfalls, it’s slightly better to omit the unnecessary capture, using $request_uriinstead. In that case, append a question mark to prevent nginx from doubling any query args.

server {
    listen      80;
    server_name signup.mysite.com;
    rewrite     ^   https://$server_name$request_uri? permanent;
}