Finished redirects, let's see how robots and metrics will react. And now here's what happened to me.
the task is to configure Nginx to add www everywhere and make an unconditional redirect to this site address, and the second and most important unconditional transfer to the https version.
return 301 https://www.$server_name$request_uri;
listen 443 ssl http2;
As to remove under this robot.txt can be from redirect can be to know here: Открываем доступ к robots.txt в NGINX при HTTPS-only