Radosgw nginx config

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



All,

I did not see this in the online wiki, but we prefer nginx in most all
deployments as wel like the ease of config a little better.  Below
find the minimal nginx configuration block for fascgi to the radosgw
socket.  Some clients S3/Swift require https  so you'll have to add
that in as well. This seems to be working okay for us, although we
haven't tested it significantly.

We hope this helps anybody that is looking for nginx/fastcgi and the
rados gw (and can be added to the online docs after some further
testing)

Thanks

Talin

http {
.....

#if you want caching add below and uncomment the sections in server block:


      fastcgi_cache_path   /tmp/cache  levels=1:2
                       keys_zone=NAME:10m
                       inactive=5m;

         fastcgi_cache_key "$scheme$request_method$host$request_uri";


...
}

server {
        listen   80; ## listen for ipv4; this line is default and implied
        #listen   [::]:80 default ipv6only=on; ## listen for ipv6

        root /usr/share/nginx/www;
        index index.html index.htm;

        server_name _ ;

        location / {

  fastcgi_param  QUERY_STRING     $query_string;
  fastcgi_param  REQUEST_METHOD   $request_method;
  fastcgi_param  CONTENT_TYPE     $content_type;
  fastcgi_param  CONTENT_LENGTH   $content_length;

#             fastcgi_cache   NAME;
#      fastcgi_cache_valid   200 302  1h;
#      fastcgi_cache_valid   301      1d;
#      fastcgi_cache_valid   any      1m;
#      fastcgi_cache_min_uses  1;
#      fastcgi_cache_use_stale error  timeout invalid_header http_500;

      fastcgi_pass_header Authorization;
      fastcgi_pass_request_headers on;

                fastcgi_pass unix:/tmp/radosgw.sock;
                include fastcgi_params;
        }

}




Talin Senner
Wildcard Corp.

http://cdig.me  -  http://www.wildcardcorp.com
Secure Web CMS Hosting - CDN - DNS - IPv6

Security.Technology.Solutions
*We do it all for you*
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [CEPH Users]     [Ceph Large]     [Information on CEPH]     [Linux BTRFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux