Is it possible to enable reverse proxy for swift using nginx?

asked 2013-07-25 11:48:11 -0600

ebyenjoys gravatar image

Hello, I have a link that plays an object mp4 file (for example http://192.168.1.55:8080/v1/AUTH_system/myfiles/n.mp4),and i am trying to enable some reverse proxy with nginx.Is it possible to enable it under tempauth,and will it bring any advantage??

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2013-07-26 01:14:08 -0600

clayg gravatar image

If you're interested in a reverse proxy for auth, I believe this was released recently and I'd imagine the author would love to get some feedback:

https://github.com/CloudVPS/swift-basicauth

But more generally, recent Swift has examples of how to run it behind an apache server:

https://github.com/openstack/swift/tree/master/examples/apache2

I've heard that you need to be careful with some versions of nginx and some requests. The claim is that nginx will spool an entire PUT request to temporary storage before serving it out to the service behind the proxy. I've never tested it, but it seems dubious - surely nginx can tie the sockets together for GET requests, why would it do differently for PUT? If you're only going to proxy egress it may not matter.

edit flag offensive delete link more

Comments

sir,nginx has got a cache module and in case if we enable it spooling occurs otherwise it could be a great option to enable nginx.

ebyenjoys gravatar imageebyenjoys ( 2013-07-26 05:47:25 -0600 )edit

sir.the link (https://github.com/openstack/swift/tree/master/examples/apache2) works as a replacemnt for a proxy server,i guess it cannot be seen in reverse proxy sense.

ebyenjoys gravatar imageebyenjoys ( 2013-07-26 13:15:50 -0600 )edit

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2013-07-25 11:48:11 -0600

Seen: 2,496 times

Last updated: Jul 26 '13