You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+20-6Lines changed: 20 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -213,7 +213,7 @@ See the [Plik Docker reference](documentation/docker.md)
213
213
214
214
### FAQ
215
215
216
-
#####Why is stream mode broken in multiple instance deployement ?
216
+
* Why is stream mode broken in multiple instance deployement ?
217
217
218
218
Beacause stream mode isn't stateless. As the uploader request will block on one plik instance the downloader request **MUST** go to the same instance to succeed.
219
219
The load balancing strategy **MUST** be aware of this and route stream requests to the same instance by hashing the file id.
@@ -253,7 +253,21 @@ server {
253
253
}
254
254
```
255
255
256
-
##### I have an error when uploading from client : "Unable to upload file : HTTP error 411 Length Required"
256
+
* Redirection loops with DownloadDomain enforcement and reverse proxy
DownloadDomain check the Host header of the incoming HTTP request, by default reverse proxies like
263
+
Nginx or Apache mod_proxy does not forward this Header. Check the following configuration directive :
264
+
265
+
```
266
+
Apache mod_proxy : ProxyPreserveHost On
267
+
Nginx : proxy_set_header Host $host;
268
+
```
269
+
270
+
* I have an error when uploading from client : "Unable to upload file : HTTP error 411 Length Required"
257
271
258
272
Under nginx < 1.3.9, you must enable HttpChunkin module to allow transfer-encoding "chunked".
259
273
You might want to install the "nginx-extras" Debian package with built-in HttpChunkin module.
@@ -268,7 +282,7 @@ And add in your server configuration :
268
282
}
269
283
```
270
284
271
-
#####How to disable nginx buffering ?
285
+
* How to disable nginx buffering ?
272
286
273
287
By default nginx buffers large HTTP requests and reponses to a temporary file. This behaviour leads to unnecessary disk load and slower transfers. This should be turned off (>1.7.12) for /file and /stream paths. You might also want to increase buffers size.
0 commit comments