Welcome! Log In Create A New Profile

Advanced

Re: Does nginx support openstack swift API?

Maxim Dounin
May 29, 2014 08:26AM
Hello!

On Thu, May 29, 2014 at 07:04:46PM +0800, Andy wrote:

> Hello guys,
>
> I'm trying to find a way to use OpenStack SWIFT with nginx, the below are
> request steps:
>
> 1. nginx is configured as proxy cache
> 2. client send a request to nginx for url: http://domain.com/filename.txt
> 3. nginx received the request and it is a cache miss, it need to fetch the
> content from SWIFT proxy server
> 4. nginx send a request to swift proxy server for authentication, the url
> looks like http://swift-proxy/auth-account, account information is set in
> header, the response from swift proxy server contains a auth-token for that
> account if authentication success.
> 5. then nginx use this auth-token and put it in a new request header, and
> send the new request to the swift proxy server for the original request
> content, there could be a map between client request url to the swift proxy
> url, for example, /filename.txt --> /account/container/filename.txt, so the
> new requst url could be http://swift-proxy/account/container/filename.txt,
> plus the auth-token.
> 6. swift proxy sever response the content to nginx, then nginx cache the
> content and pass the response to the client.
>
> Could the above requirement be accomplished by some specific configuration
> plus some existing nginx modules?

Looks like something more or less possible with auth_request, see
http://nginx.org/en/docs/http/ngx_http_auth_request_module.html.

--
Maxim Dounin
http://nginx.org/

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Does nginx support openstack swift API?

hexiay May 29, 2014 07:06AM

Re: Does nginx support openstack swift API?

Maxim Dounin May 29, 2014 08:26AM

Re: Does nginx support openstack swift API?

hexiay May 30, 2014 03:22AM

Re: Does nginx support openstack swift API?

jianjun.fang2807@gmail.com August 12, 2014 03:03PM

Re: Does nginx support openstack swift API?

AmyAmy March 02, 2016 04:10AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 257
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready