Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
simkimsia opened this issue Sep 17, 2022 · 2 comments

Comments

@simkimsia
Copy link

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
Copy link
Contributor

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

@johnthagen
Copy link
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants