I deployed the server with Ubuntu 18, Django, Gunicorn, Nginx And I ran into this problem:
everything works great but, When I upload large pictures files in Django, Nginx gives 403 Error Forbidden.
I updated the permissions to the folder with static files on 755. It works! But when I upload other files, the rights do not work.
I added the user root and user www-data to the folder owner’s group, but nothing has changed.
I understand that Nginx has no permissions, but how can I implement the inheritance permissions of new files from the parent folder
or will you suggest another solution?
FILE_UPLOAD_PERMISSIONS = 0o644
– Reema Parakh