Skip to content

Instantly share code, notes, and snippets.

@svetlyak40wt
Created July 30, 2012 13:11
Show Gist options
  • Save svetlyak40wt/3206772 to your computer and use it in GitHub Desktop.
Save svetlyak40wt/3206772 to your computer and use it in GitHub Desktop.
How to pass POST uploads into FastCGI, using files.
client_body_in_file_only clean; # предзакачивать POST на диск и чистить после ответа
client_body_temp_path /tmp/nginx/body/; # папка с постами
fastcgi_pass_request_body off; # не прокачивать тело POSTа в fastcgi напряму
fastcgi_param REQUEST_BODY_FILE $request_body_file; # прокинуть в ENV путь к телу POSTа
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment