jazzband / django-downloadview

Serve files with Django.
https://django-downloadview.readthedocs.io
Other
364 stars 58 forks source link

How to use django-downloadview for ensuring only authenticated users can access media files? #202

Open simkimsia opened 1 year ago

simkimsia commented 1 year ago

I have similar question as #129

the only difference is that I'm using nginx. I'm not so interested about performance, but only that I want to ensure only authenticated users can access media files.

That's all.

The documentation I have tried reading e,g, https://django-downloadview.readthedocs.io/en/latest/optimizations/nginx.html?highlight=media#setup-xaccelredirect-middlewares but still none the wiser.

They seem to emphasize for performance. Not authentication or privacy.

Can help?

johnthagen commented 1 year ago

If you are using DRF, some discussion and an example in

johnthagen commented 1 year ago

See also: