Re: django images nginx and authentication
Hi Rene,
look at this:
http://wiki.nginx.org/NginxHttpSecureDownload. I personally use
lighttpd and mod_secdownload and googled the above.
It works like this:
Your django application and your image server(s) share a secret.
Your application takes the secret, the url and a timestamp to
generate a new url consisting of the original url, the timestamp and
a hash value.
The image server than takes his secret, the timestamp and the url
to calculate the hash. If the timestamp is not older than your
specified period and the hash matches the submitted hash the user
is allowed to download the image.
cheers tback
On Oct 15, 12:41 pm, ReneMarxis <rene.mar...@yahoo.de> wrote:
> Hello
>
> i'm faceing the following problem: i have some application for
> creating image galleries (upload/change...).
> Till now the images are served by an nginx webserver (and are
> therefore open to everyone). The django app is running in apache with
> wsgi.
>
> My problem is i need to restrict the image delivery only to persons
> that are authorized to watch the images. Best would be to include
> djangos authentication with nginx.
>
> Is there any way to accomplish this or any other hints?
>
> _thanks rene
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home