The document editor doesn't work in HTTPS

Dear colleagues I ran into a problem I deployed Nextcloud in docker and north of ONLY OFFICE documents in docker
I also put NGINX in a separate docker but I use it as a reverse proxy for redirecting to HTTPS
but when working on HTTPS documents do not open “the application swears that it can not open documents contact the system administrator”

server {
listen 443 ssl;
server_name cloud.ru;
location / {
proxy_pass http://10.3.25.31:80/;
}
ssl_certificate /etc/nginx/conf.d/bundle.crt;
ssl_certificate_key /etc/nginx/conf.d/*.cloud.ru.key;
}

I tried to do it like this but it didn’t help

proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $proxy_connection;
proxy_set_header X-Forwarded-Host $http_host/editors;
server {
listen 80;
location / {
proxy_pass_header Server;
proxy_pass http://10.3.25.31:80/;
}
location /editors/ {
proxy_pass http://10.3.25.31:3380/;
}
}