Nginx as proxy for Amazon S3 protected files

Hi everyone,
i know Nginx could make for an excellent proxy for Amazon S3 files when
there are publicly accessible.

Did anyone ever setup Nginx to proxy files where the ACL ist set to
“authenticated-read”?

Nginx would have to generate signed URLs with the access key and expiry
date
for each request.

Hello!

On Thu, Dec 17, 2009 at 02:31:05PM +0100, Smrchy wrote:

Hi everyone,
i know Nginx could make for an excellent proxy for Amazon S3 files when
there are publicly accessible.

Did anyone ever setup Nginx to proxy files where the ACL ist set to
“authenticated-read”?

Nginx would have to generate signed URLs with the access key and expiry date
for each request.

I believe at least someone did, try searching mailing list
archives. You probably need embedded perl to construct correctly
signed URLs though.

Maxim D.

Hi

archives. You probably need embedded perl to construct correctly
signed URLs though.

I also need nginx to authenticate against S3. Have been looking through
the list and on Google but couldn’t find anything.

Anyone has a link to such a project, if it exists? Else I’m gonna start
looking into it.

Thanks in advance

Regards

Hello,

I found there’s an apache module for S3 auth. Maybe it’s possible to
import it in nginx (with light modifications) ?
Here’s the link :
http://cpansearch.perl.org/src/IWADE/Apache2-S3-0.05/lib/Apache2/S3.pm

As far as I can see (not an expert, far of it!), one has only to change
“apache2” with “nginx”, and maybe some var names…

As we also need this kind of stuff, it would be really great if a module
was done. Maybe if I have some time I can try to do it, but I’m
affraid it will not be before months :frowning:

Best regards,

C.

On Thu, 28 Jan 2010 09:54:20 +0100

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs