Nginx / Django File Upload Permissions
I noticed today that whenever I upload a file through my Django site, the file is uploaded with 0600 file permissions, when whenever a non-root user wants to view the file (nginx), 403 is displayed.
It just started today, from what I can tell. I checked the files file_upload_permissions and file_upload_directory_permissions in the Django settings file and both are set to 0644.
I haven't updated Linux / Django recently, so this shouldn't be the reason, any help would be greatly appreciated.
Thank,
Sam
+3
source to share