I have add this cose to nginx config to vhost i like and works but when nginx restarts or when a new or update an domain the code gets removed and i have to re add it again
return 301 https://$host$request_uri;
question is, an way keep that code there ...