Error connection: Will not follow more than 5 redirects

I have a running documentserver with nginx and nextcloud which stop running suddenly after update nextcloud to 28.0.1 version.
When I try to access my documentserver url I get 301 error.
And if I try sudo -u www-data php occ onlyoffice:documentserver --check
I get the next error:
Error connection: Will not follow more than 5 redirects

I have installed onlyoffice-documentserver 7.5.1-23 version with deb file
nginx 1.18.0-6 version.
php 8.2
and my server is an ubuntu server 22.04 LTS