How to redirect HTTPS for Site

Hi,

how can i store force http permanent?

                 if ($scheme = http) {
                 return 301 https://$server_name$request_uri;
                }

If i ad this to nginx frappe.conf. manually it will be lost after every “bench setup nginx” command

Just write it in a new file and include it on your main nginx config (?)