From 3d28ca2d3bf82a1d13ed42844db75dced496cc85 Mon Sep 17 00:00:00 2001 From: "Amir H. Yeganemehr" Date: Wed, 5 Jul 2023 21:49:30 +0330 Subject: [PATCH] Add unix domain socket upstream --- S3-Nginx-Proxy.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/S3-Nginx-Proxy.md b/S3-Nginx-Proxy.md index 527563d..8ea16fa 100644 --- a/S3-Nginx-Proxy.md +++ b/S3-Nginx-Proxy.md @@ -5,6 +5,9 @@ It's a common concept to put a proxy in front of S3 that handles requests. Nginx ``` upstream seaweedfs { 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;} + server { listen 443 ssl; server_name ~^(?[^.]+).yourdomain.com;