-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbracery-config.js
41 lines (36 loc) · 1.12 KB
/
bracery-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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
module.exports = {
// API Gateway
baseUrl: 'https://bracery.org',
viewPrefix: '/',
storePrefix: '/api/v1/store/',
assetPrefix: '/api/v1/asset/',
expandPrefix: '/api/v1/expand/',
loginPrefix: '/api/v1/login/',
logoutPrefix: '/api/v1/logout/',
twitterPrefix: '/api/v1/twitter/',
bookmarkPrefix: '/api/v1/bookmark/',
// DynamoDB tables
tableName: 'BraceryTable',
bookmarkTableName: 'BraceryBookmarkTable',
revisionsTableName: 'BraceryRevisionsTable',
twitterTableName: 'BraceryTwitterTable',
sessionTableName: 'BracerySessionTable',
wordTableName: 'BraceryWordTable',
// DynamoDB attributes & default values
// BraceryTable
updateIndexName: 'visibility-updated-index',
defaultVisibility: 'public',
recentlyUpdatedLimit: 5,
// BracerySessionTable
cookieName: 'bracery_session',
sessionExpirationSeconds: 24*60*60, // 1 day
// AWS Cognito
cognitoDomain: 'auth.bracery.org',
// Filenames and virtual paths
templateHtmlFilename: 'index.html',
appTemplateHtmlFilename: 'index.html',
viewAssetStub: 'bracery-view',
appAssetStub: 'app',
// Encoding
stringEncoding: 'utf-8',
};