comment adjustment

This commit is contained in:
Karol Wypchlo 2020-04-28 21:06:46 +02:00 committed by Karol Wypchło
parent d875ae2367
commit 3323ba282a
1 changed files with 3 additions and 2 deletions

View File

@ -59,8 +59,9 @@ server {
# Extract 3 sets of 2 characters from $request_id and assign to $dir1, $dir2, $dir3
# respectfully. The rest of the $request_id is going to be assigned to $dir4.
# We use those variables to automaticallygenerate unique path for uploaded file, yet
# we want to limit the number of folders on one directory level so we create nested path.
# We use those variables to automatically generate a unique path for the uploaded file.
# This ensures that not all uploaded files end up in the same directory, which is something
# that causes performance issues in the renter.
# Example path result: /af/24/9b/c5ec894920ccc45634dc9a8065
if ($request_id ~* "(\w{2})(\w{2})(\w{2})(\w+)") {
set $dir1 $1;