|
|
@@ -68,7 +68,7 @@ upload_progress
|
|
68
|
68
|
|
|
69
|
69
|
track_uploads
|
|
70
|
70
|
+++++++++++++
|
|
71
|
|
- :Syntax: track_uploads <zone_name>
|
|
|
71
|
+ :Syntax: track_uploads <zone_name> <timeout>
|
|
72
|
72
|
:Default: none
|
|
73
|
73
|
:Context: location
|
|
74
|
74
|
:Description:
|
|
|
@@ -77,6 +77,8 @@ track_uploads
|
|
77
|
77
|
Since Nginx doesn't support yet RFC 1867 upload, the location must be a proxy_pass or fastcgi location.
|
|
78
|
78
|
The POST _must_ have a query parameter called X-Progress-ID (or an HTTP header of the same name) whose value is the
|
|
79
|
79
|
unique identifier used to get progress information. If the POST has no such information, the upload will not be tracked.
|
|
|
80
|
+ The tracked connections are kept at most <timeout> seconds after they have been finished to be able to serve
|
|
|
81
|
+ unseful information to upload progress probes.
|
|
80
|
82
|
|
|
81
|
83
|
report_uploads
|
|
82
|
84
|
++++++++++++++
|
|
|
@@ -122,7 +124,8 @@ http {
|
|
122
|
124
|
proxy_redirect default;
|
|
123
|
125
|
|
|
124
|
126
|
# track uploads in the 'proxied' zone
|
|
125
|
|
- track_uploads proxied;
|
|
|
127
|
+ # remember connections for 30s after they finished
|
|
|
128
|
+ track_uploads proxied 30s;
|
|
126
|
129
|
}
|
|
127
|
130
|
|
|
128
|
131
|
location ^~ /progress {
|