Nginx files and folders permissions 755 and
find /path/to/website -type d -exec chmod 755 {} \;
find /path/to/website -type f -exec chmod 644 {} \;
sudo chown -R www-data:www-data /path/to/website
example
find code -type d -exec chmod 755 {} \;
find code -type f -exec chmod 644 {} \;
sudo chown -R www-data:www-data code