-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.js
26 lines (25 loc) · 988 Bytes
/
config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/**
* This file includes base config vars.
* Additional config comes from the browser client when it initializes sync.
*/
module.exports = {
PUT_CONCURRENCY: 100,
SERVICES_MAX_RETRIES: 1,
EXPIRED_CREDENTIAL_ERRORS: [
/The provided token has expired\./,
/Invalid according to Policy: Policy expired\./,
/The security token included in the request is expired/,
/The provided token is malformed or otherwise invalid/,
/The AWS Access Key Id you provided does not exist in our records./
],
// Maximum amount of messages to receive from SQS
SQS_MAX_LIST_MESSAGES_COUNT: 10,
// How many seconds messages will be invisible for another poll
SQS_MESSAGES_VISIBILITY_TIMEOUT: 30, // In seconds
// How many seconds we should wait for messages
SQS_MESSAGES_LONGPOLL_TIMEOUT: 10, // In seconds
// 2-byte encryption nonce counter, rotated periodically
nonceCounter: 0,
// Sync library version, updated every huhi/sync release
syncVersion: 'v1.4.3'
}