From 0494389f20afed97c1901b1c0ece218acf1da895 Mon Sep 17 00:00:00 2001 From: Karol Wypchlo Date: Wed, 15 Jul 2020 17:09:22 +0200 Subject: [PATCH] do not match empty skyfile path --- docker/nginx/conf.d/client.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker/nginx/conf.d/client.conf b/docker/nginx/conf.d/client.conf index 9d087e60..eee08c0d 100644 --- a/docker/nginx/conf.d/client.conf +++ b/docker/nginx/conf.d/client.conf @@ -89,7 +89,7 @@ server { proxy_pass http://siad-upload/skynet/skyfile/$dir1/$dir2/$dir3/$dir4$is_args$args; } - location ~ "/skynet/skyfile/(.*)" { + location ~ "/skynet/skyfile/(.+)" { limit_conn uploads_by_ip 10; # ddos protection: max 10 uploads at a time client_max_body_size 1000M; # make sure to limit the size of upload to a sane value proxy_read_timeout 600;