Redirect from HTTP without WWW to HTTPS with WWW

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