Update 7.01 Error Unable to obtain OAuth client credentials

Hi, I updated to 7.01 Peertube, and noticed the Nginx changes, which I also added, I received an error. After returning the Nginx settings, the error went away. What should I do, or did I not understand something? my configuration matches PeerTube/config at develop · Chocobozzz/PeerTube · GitHub

Error
Unable to obtain OAuth client credentials: Getting client tokens for host undefined is forbidden. Make sure you have configured PeerTube correctly (config/directory), specifically the "web server" section.

я исправил только nginx

cd /var/www/peertube/versions
diff -u "$(ls -t | head -2 | tail -1)/support/nginx/peertube" "$(ls -t | head -1)/support/nginx/peertube"
--- peertube-v7.0.0/support/nginx/peertube      2024-09-18 11:20:10.000000000 +0300
+++ peertube-v7.0.1/support/nginx/peertube      2025-01-06 10:41:40.000000000 +0300
@@ -61,7 +61,7 @@
 
   location @api {
     proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
-    proxy_set_header Host            $host;
+    proxy_set_header Host            $http_host;
     proxy_set_header X-Real-IP       $remote_addr;
 
     client_max_body_size  100k; # default is 1M
@@ -126,7 +126,7 @@
   location @api_websocket {
     proxy_http_version 1.1;
     proxy_set_header   X-Forwarded-For $proxy_add_x_forwarded_for;
-    proxy_set_header   Host            $host;
+    proxy_set_header   Host            $http_host;
     proxy_set_header   X-Real-IP       $remote_addr;
     proxy_set_header   Upgrade         $http_upgrade;
     proxy_set_header   Connection      "upgrade";
@@ -210,7 +210,7 @@
     # We can't rate limit a try_files directive, so we need to duplicate @api
 
     proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
-    proxy_set_header Host            $host;
+    proxy_set_header Host            $http_host;
     proxy_set_header X-Real-IP       $remote_addr;
 
     proxy_limit_rate 5M;
root@vnehniymir:/var/www/peertube/versions# cd