Nginx update download module with rails and passenger

I tried to get a Nginx download run module that runs on WebFaction with Rails and Passenger (using Paperclip to load on S3). The best result I have come up with so far is that it reports the start and end, but nothing happens. Ajax request to the / progress path works fine.

This is the nginx.conf file. I have a setting: http://pastie.org/835075

Any ideas?

+2
source share
1 answer

What does the mid-stream XHR request say? If he says "start", I solved it by changing the order of the directives in nginx.conf, although yours looks the same as mine.

, JSON, , jQuery 1.4 JSON. upload_progress_json_output, JSON.

location ^~ /progress {
  upload_progress_json_output;
  report_uploads proxied;
}
+2

Source: https://habr.com/ru/post/1738069/


All Articles