Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server {
- listen 80;
- server_name _;
- location /uploadfile {
- ### limit_except POST { deny all; }
- client_body_temp_path /data/tmp;
- client_body_in_file_only on;
- client_body_buffer_size 128K;
- client_max_body_size 4G;
- proxy_pass_request_headers on;
- proxy_set_header X-FILE $request_body_file;
- ### proxy_set_header Content-Type "multipart/form-data";
- proxy_redirect off;
- proxy_buffering off;
- proxy_set_body off;
- proxy_http_version 1.1;
- proxy_pass http://127.0.0.1:3000/uploadfile;
- }
- location / {
- proxy_pass http://127.0.0.1:3000;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement