Advertisement
Guest User

Untitled

a guest
Feb 27th, 2015
699
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. server {
  2. listen 80;
  3. server_name _;
  4.  
  5. location /uploadfile {
  6. ### limit_except POST { deny all; }
  7. client_body_temp_path /data/tmp;
  8. client_body_in_file_only on;
  9. client_body_buffer_size 128K;
  10. client_max_body_size 4G;
  11. proxy_pass_request_headers on;
  12. proxy_set_header X-FILE $request_body_file;
  13. ### proxy_set_header Content-Type "multipart/form-data";
  14. proxy_redirect off;
  15. proxy_buffering off;
  16. proxy_set_body off;
  17. proxy_http_version 1.1;
  18. proxy_pass http://127.0.0.1:3000/uploadfile;
  19. }
  20.  
  21. location / {
  22. proxy_pass http://127.0.0.1:3000;
  23. }
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement