From 13c7c4339cfef7100437ddc7ecb4f2e29cdca1b0 Mon Sep 17 00:00:00 2001 From: Anders Aarvik Date: Fri, 6 Jun 2025 11:29:45 +0200 Subject: [PATCH] The hash on uploadId query string in the GET request create consistency for multipart uploads. This will cause errors otherwise when using multiple filers for a single object with upload parts. --- S3-Nginx-Proxy.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/S3-Nginx-Proxy.md b/S3-Nginx-Proxy.md index 24c44e6..088af2a 100644 --- a/S3-Nginx-Proxy.md +++ b/S3-Nginx-Proxy.md @@ -10,7 +10,11 @@ Additionally, make sure that `proxy_request_buffering` is `off` (default is `on` ### Example Nginx config ``` -upstream seaweedfs { server localhost:8333 fail_timeout=0; keepalive 20;} +upstream seaweedfs { + hash $arg_uploadId consistent; + server localhost:8333 fail_timeout=0; + keepalive 20; +} ## Also you can use unix domain socket instead for better performance: # upstream seaweedfs { server unix:/tmp/seaweedfs-s3-8333.sock; keepalive 20;}