Redirect HTTP to HTTPS in nginx

server {
    listen 80;
    server_name shop.example.com;
    return 301 https://$host$request_uri;
}