Redirect from HTTP to HTTPS

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