Nginx cannot access upstream .sock file and public folder
You must check the permission, not only of the socket (file) but of all the parent directories. If any of them deny access, your request will fail.
For instance:
# ls -ld /home/app
drwx------. 8 root root 4096 Dec 7 21:33 /home/app