We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5cc1037 commit a7c684aCopy full SHA for a7c684a
config.js
@@ -31,6 +31,7 @@ exports = module.exports = {
31
ssl: process.env.S3_SSL || false,
32
accessKey: process.env.S3_ACCESS_KEY || '',
33
secretKey: process.env.S3_SECRET_KEY || '',
34
- bucket: process.env.S3_BUCKET || 'judge-submissions'
+ bucket: process.env.S3_BUCKET || 'judge-submissions',
35
+ region: process.env.S3_REGION || 'us-east-1'
36
}
37
src/utils/s3.ts
@@ -9,6 +9,7 @@ const client = new Minio.Client({
9
useSSL: !!config.S3.ssl,
10
accessKey: config.S3.accessKey,
11
secretKey: config.S3.secretKey,
12
+ region: config.S3.region
13
})
14
15
export type savedFile = {
0 commit comments