There is a repository in Gitlab. The repository is cloned on another server.
It is necessary to make sure that after pushing to the project repository in Gitlab, the remote repository executes the pull command.
Update :
On the nginx server, in the settings I specified locations, in which, using lua, a bash script is called with updating the repository and set up a webhook in Gitlab for this url.