Increased timeout and retries on S3 config
This commit is contained in:
@@ -1,5 +1,4 @@
|
|||||||
// https://github.com/VeliovGroup/Meteor-Files/blob/master/docs/aws-s3-integration.md
|
// https://github.com/VeliovGroup/Meteor-Files/blob/master/docs/aws-s3-integration.md
|
||||||
|
|
||||||
import { Meteor } from 'meteor/meteor';
|
import { Meteor } from 'meteor/meteor';
|
||||||
import { each, clone } from 'lodash';
|
import { each, clone } from 'lodash';
|
||||||
import { Random } from 'meteor/random';
|
import { Random } from 'meteor/random';
|
||||||
@@ -37,8 +36,9 @@ if (Meteor.isServer && Meteor.settings.useS3) {
|
|||||||
secretAccessKey: s3Conf.secret,
|
secretAccessKey: s3Conf.secret,
|
||||||
endpoint: s3Conf.endpoint,
|
endpoint: s3Conf.endpoint,
|
||||||
sslEnabled: true, // optional
|
sslEnabled: true, // optional
|
||||||
|
maxRetries: 10,
|
||||||
httpOptions: {
|
httpOptions: {
|
||||||
timeout: 6000,
|
timeout: 12000,
|
||||||
agent: false
|
agent: false
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user