薄+ Nginx +上传模块 +上传进度模块
我使用 Nginx 作为 Thin 实例的反向代理。
我的目标是建立一个 Rails (3) 应用程序来上传大文件并对其执行某些操作。
为此,我遇到了 Nginx Upload 和 Upload Progress 模块。
我大部分时间都在阅读 这篇 帖子,但那是专门在 Passenger 中写的思考。
如果可能,我正在寻找两个可能的答案:
1)信息实现此堆栈的示例(使用 Thin 而不是 Passenger)
2)如何重写此信息的具体信息:
location ^~ /progress {
# report uploads tracked in the 'proxied' zone
upload_progress_json_output;
report_uploads proxied;
}
location @fast_upload_endpoint {
passenger_enabled on;
rails_env development;
}
location / {
rails_env development;
passenger_enabled on;
}
我不知道 Passenger 独有的是什么,以及如何为典型的 4 个工作线程/3 个瘦实例conf 编写它。
谢谢。
I'm using Nginx as a reverse proxy for Thin instances.
My goal is to set up a Rails (3) app to upload large files and do something with them.
For that, I came across the Nginx Upload and Upload Progress modules.
I was reading, for the most part, this post, but that's specifically wrote thinking in Passenger.
If possible, I'm looking for two possible answers:
1) Information an examples of implementing this stack (with Thin instead of Passenger)
2) Specific Information of how could I rewrite this:
location ^~ /progress {
# report uploads tracked in the 'proxied' zone
upload_progress_json_output;
report_uploads proxied;
}
location @fast_upload_endpoint {
passenger_enabled on;
rails_env development;
}
location / {
rails_env development;
passenger_enabled on;
}
I don't know what is Passenger exclusive, and how to write it for a typical 4 workers / 3 thin instances conf.
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
首先,您应该安装 nginx 和上传模块。站点的 nginx 配置:
First, you should install nginx with the upload module. The nginx config for site: