File tree 2 files changed +4
-0
lines changed
2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -107,6 +107,7 @@ type StorageConfigType = {
107
107
tusPath : string
108
108
tusPartSize : number
109
109
tusUseFileVersionSeparator : boolean
110
+ tusAllowS3Tags : boolean
110
111
defaultMetricsEnabled : boolean
111
112
s3ProtocolEnabled : boolean
112
113
s3ProtocolPrefix : string
@@ -251,6 +252,7 @@ export function getConfig(options?: { reload?: boolean }): StorageConfigType {
251
252
) ,
252
253
tusUseFileVersionSeparator :
253
254
getOptionalConfigFromEnv ( 'TUS_USE_FILE_VERSION_SEPARATOR' ) === 'true' ,
255
+ tusAllowS3Tags : getOptionalConfigFromEnv ( 'TUS_ALLOW_S3_TAGS' ) !== 'false' ,
254
256
255
257
// S3 Protocol
256
258
s3ProtocolEnabled : getOptionalConfigFromEnv ( 'S3_PROTOCOL_ENABLED' ) !== 'false' ,
Original file line number Diff line number Diff line change @@ -42,6 +42,7 @@ const {
42
42
tusPath,
43
43
tusPartSize,
44
44
tusMaxConcurrentUploads,
45
+ tusAllowS3Tags,
45
46
uploadFileSizeLimit,
46
47
storageBackendType,
47
48
storageFilePath,
@@ -66,6 +67,7 @@ function createTusStore(agent: { httpsAgent: https.Agent; httpAgent: http.Agent
66
67
expirationPeriodInMilliseconds : tusUrlExpiryMs ,
67
68
cache : new AlsMemoryKV ( ) ,
68
69
maxConcurrentPartUploads : tusMaxConcurrentUploads ,
70
+ useTags : tusAllowS3Tags ,
69
71
s3ClientConfig : {
70
72
requestHandler : new NodeHttpHandler ( {
71
73
...agent ,
You can’t perform that action at this time.
0 commit comments