Nginx (403) Forbidding some static files from DO Spaces Django.

I am using Nginx with Django. All configuration are made according to docs provided by DO and everything works fines except I am getting following Error for some of my static files served through DO spaces. When I’m making those files ‘Public’ the error goes away from DO spaces dashboard. I am confused that some files having permission ‘private’ are loading and some have to made ‘public’. Example files in tinymce folder have to be made ‘public’ or files which are in vendor folder.

Error in my Console: GET https://sgp1.digitaloceanspacenet: spaces/static/tinymce/js/tinymce/plugins/textcolor/plugin.min.js :ERR_ABORTED 403 (Forbidden)

Is there any way to give permission to those files without making them ‘public’? or if not any way to make them ‘public’ all at once?

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer