Give me please worked collabora online config for nginx

It’s not work:

map $http_upgrade $connection_upgrade {
  default upgrade;
  '' close;
}

server {
...
# ssl and more
...
  # Collabora
  
  set $http_collabora 192.168.1.111:8081;
  
  location ^~ /loleaflet {
    proxy_pass https://$http_collabora;
    proxy_set_header Host $http_host;
  }

  location ^~ /hosting/discovery {
    proxy_pass https://$http_collabora;
    proxy_set_header Host $http_host;
  }

  location ~ /lool/(.*)/ws$ {
    proxy_pass https://$http_collabora;
    proxy_http_version 1.1;
    proxy_set_header Upgrade $http_upgrade;
    proxy_set_header Connection $connection_upgrade;
    proxy_set_header Host $http_host;
    proxy_read_timeout 36000s;
  }

  location ^~ /lool/adminws {
    proxy_pass https://$http_collabora;
    proxy_http_version 1.1;
    proxy_set_header Upgrade $http_upgrade;
    proxy_set_header Connection $connection_upgrade;
    proxy_set_header Host $http_host;
    proxy_read_timeout 36000s;
  }

  location ^~ /lool {
    proxy_pass https://$http_collabora;
    proxy_set_header Host $http_host;
  }
}