Merge pull request #294 from NebulousLabs/post-skynet-skyfile-trailing-slash-issue

do not match empty skyfile path
This commit is contained in:
Peter-Jan Brone 2020-07-15 17:38:20 +02:00 committed by GitHub
commit 488d1513c7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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;