mirror of
https://github.com/ascribe/onion.git
synced 2024-12-22 09:23:13 +01:00
Enable Amazon S3 Accelerate
This commit is contained in:
parent
9f0cd93c28
commit
56b7071c87
@ -15,7 +15,7 @@ import GlobalNotificationActions from '../../actions/global_notification_actions
|
|||||||
|
|
||||||
import AppConstants from '../../constants/application_constants';
|
import AppConstants from '../../constants/application_constants';
|
||||||
import { ErrorClasses, testErrorAgainstAll } from '../../constants/error_constants';
|
import { ErrorClasses, testErrorAgainstAll } from '../../constants/error_constants';
|
||||||
import { RETRY_ATTEMPT_TO_SHOW_CONTACT_US } from '../../constants/uploader_constants';
|
import { RETRY_ATTEMPT_TO_SHOW_CONTACT_US, ENDPOINTS } from '../../constants/uploader_constants';
|
||||||
|
|
||||||
import { displayValidFilesFilter, FileStatus, transformAllowedExtensionsToInputAcceptProp } from './react_s3_fine_uploader_utils';
|
import { displayValidFilesFilter, FileStatus, transformAllowedExtensionsToInputAcceptProp } from './react_s3_fine_uploader_utils';
|
||||||
import { getCookie } from '../../utils/fetch_api_utils';
|
import { getCookie } from '../../utils/fetch_api_utils';
|
||||||
@ -170,8 +170,7 @@ const ReactS3FineUploader = React.createClass({
|
|||||||
bucket: 'ascribe0'
|
bucket: 'ascribe0'
|
||||||
},
|
},
|
||||||
request: {
|
request: {
|
||||||
//endpoint: 'https://www.ascribe.io.global.prod.fastly.net',
|
endpoint: ENDPOINTS.accelerate,
|
||||||
endpoint: 'https://ascribe0.s3.amazonaws.com',
|
|
||||||
accessKey: 'AKIAIVCZJ33WSCBQ3QDA'
|
accessKey: 'AKIAIVCZJ33WSCBQ3QDA'
|
||||||
},
|
},
|
||||||
uploadSuccess: {
|
uploadSuccess: {
|
||||||
|
@ -33,3 +33,8 @@ export const validationTypes = {
|
|||||||
|
|
||||||
// Number of manual retries before showing a contact us screen on the uploader.
|
// Number of manual retries before showing a contact us screen on the uploader.
|
||||||
export const RETRY_ATTEMPT_TO_SHOW_CONTACT_US = 5;
|
export const RETRY_ATTEMPT_TO_SHOW_CONTACT_US = 5;
|
||||||
|
|
||||||
|
export const ENDPOINTS = {
|
||||||
|
s3: 'https://ascribe0.s3.amazonaws.com',
|
||||||
|
accelerate: 'https://ascribe0.s3-accelerate.amazonaws.com'
|
||||||
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user