I want to redirect http to https with nginx:
server { listen 80; server_name example.com; return 301 https://$server_name$request_uri; }
and