From 2c7301b90e846355c4673f233e1aafc2bde33bea Mon Sep 17 00:00:00 2001 From: Di Wu Date: Tue, 14 Jan 2020 14:09:54 -0800 Subject: [PATCH] Increase max metadata value size to 2KB AWS S3 allows max metadata size of 2KB. It's computed as the sum of the key and value. Swift by default constrains the metadata value size to 256bytes, which is too low and not really compatible with what S3 provides. --- swift/swift.conf | 3 +++ 1 file changed, 3 insertions(+) diff --git a/swift/swift.conf b/swift/swift.conf index c7c1ac2..fbabcfe 100644 --- a/swift/swift.conf +++ b/swift/swift.conf @@ -2,3 +2,6 @@ # random unique strings that can never change (DO NOT LOSE) swift_hash_path_prefix = veDDnRGXVW7rXqc3 swift_hash_path_suffix = 0rBOk3EM17yId7Ke + +[swift-constraints] +max_meta_value_length = 2048