How should the rights be configured so that the site can properly write data to its configs in document_root.
Worth nginx + php-fpm. Nginx works from the user www-data.
All site files belong to the user rayzor and the same group, which is logical.
This user will log in via ssh and clone the repository on its own behalf.
What after and before each git pull to change the owner and rights? Or put on the files right 777? This is also wrong. Or put to nginx Worked from the user rayzor?
Which option is normal? So to say, not to be ashamed before pokemon