comment adjustment
This commit is contained in:
parent
d875ae2367
commit
3323ba282a
|
@ -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;
|
||||
|
|
Reference in New Issue