Trusted domain wrong redirect, help!

A had frontend nginx like a proxy_pass to backend apache. On this apache configured nextcloud.

When i connect to httpS:// , first nextcloud say add trusted domain and after that
works redirect to IP_backend/index.php/login?redirect_url=/index.php/apps/files/

And nextcloud work. Help me! I want see httpS://

nginx frontend:

server {
listen 443 ssl;
server_name cloud.node.r;
access_log /var/log/nginx/xxx.log;
error_log /var/log/nginx/cxxx_error.log;
proxy_read_timeout 12h;
proxy_send_timeout 12h;

ssl_certificate /etc/letsencrypt/live/xxx/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/xxx/privkey.pem;
ssl_dhparam /etc/letsencrypt/live/xxx/dhparam.pem;

location / {
allow all;


apache backend:

<VirtualHost *:80>
DocumentRoot /var/www/html/nextcloud/

ErrorLog /var/log/apache2/cloud.profnode.ru_error.log
CustomLog /var/log/apache2/cloud.profnode.ru_access.log combined
<Directory /var/www/html/nextcloud/>
Options +FollowSymlinks
AllowOverride All

Dav off

SetEnv HOME /var/www/html/nextcloud
SetEnv HTTP_HOME /var/www/html/nextcloud