Nginx https redirect issue

I fixed this issue now.

edit line70
replace:

          return 301 https://$host$request_uri?$query_string;

with

rewrite ^ https://$server_name$request_uri? permanent;

if you have access to the erpnext project’s code. you can contrib it.