imcrazytwkr

RADOS gateway on NGINX

Feb 26th, 2017
302
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Nginx 0.79 KB | None | 0 0
  1. # NGINX configuration, adjusted to more general case
  2. server {
  3.   listen 80;
  4.   root /dev/null;
  5.   server_name rados.lcl;
  6.  
  7.   location / {
  8.     fastcgi_buffering off; # Important or nginx will crash on large files!
  9.     fastcgi_param QUERY_STRING $query_string;
  10.     fastcgi_param REQUEST_METHOD $request_method;
  11.     fastcgi_param CONTENT_TYPE $content_type;
  12.     fastcgi_param CONTENT_LENGTH $content_length;
  13.     fastcgi_pass_header Authorization;
  14.     fastcgi_pass_request_headers on;
  15.     fastcgi_pass unix:/var/run/rados.sock;
  16.     include fastcgi_params;
  17.   }
  18. }
  19.  
  20. # Supervisor configuration for RADOS gateway
  21. [program:radosgw]
  22. command         = /usr/bin/radosgw -d -c /etc/ceph/ceph.conf -n client.radosgw.gateway --rgw-socket-path=/var/run/rados.sock
  23. user            = rados
  24. redirect_stderr = true
Advertisement
Add Comment
Please, Sign In to add comment