Skip to content

Instantly share code, notes, and snippets.

@mgarces
Created August 18, 2014 15:53
Show Gist options
  • Save mgarces/ae18efe335a0b487a13c to your computer and use it in GitHub Desktop.
Save mgarces/ae18efe335a0b487a13c to your computer and use it in GitHub Desktop.
Tengine RadosGW config file
server {
listen 80;
server_name *.rados.test rados.test;
client_max_body_size 10g;
# This is the important option that tengine has, but nginx does not
fastcgi_request_buffering off;
location / {
fastcgi_pass_header Authorization;
fastcgi_pass_request_headers on;
if ($request_method = PUT ) {
rewrite ^ /PUT$request_uri;
}
include fastcgi_params;
fastcgi_pass unix:/path/to/ceph.radosgw.fastcgi.sock;
}
location /PUT/ {
internal;
fastcgi_pass_header Authorization;
fastcgi_pass_request_headers on;
include fastcgi_params;
fastcgi_param CONTENT_LENGTH $content_length;
fastcgi_pass unix:/path/to/ceph.radosgw.fastcgi.sock;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment