Created
August 18, 2014 15:53
-
-
Save mgarces/ae18efe335a0b487a13c to your computer and use it in GitHub Desktop.
Tengine RadosGW config file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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