Add this to your nginx configuration:
location /static { alias /path/to/your/static/folder; autoindex on; expires max; }
EDIT
nginx requires the whole tree to be readable, not just where your root runs in nginx.conf. So the team
sudo chmod -R 777 /root/site-demo/static
should solve the problem with permissions. But, I think itβs not good - for security reasons - to place your site in the /root directory of your web server. Usually the site is placed in the /var/www folder.
PS
The chmod -R 777 gives owners, groups, and other users the right to read, write, and execute files in a folder and in all its subfolders.
source share