-
Notifications
You must be signed in to change notification settings - Fork 387
/
Copy pathconfig.js
57 lines (49 loc) · 1.57 KB
/
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
module.exports = {
// Node.js app
port: process.env.PORT || 3000,
// API Gateway
api: {
// API URL to be used in the client-side code
clientUrl: process.env.API_CLIENT_URL || '',
// API URL to be used in the server-side code
serverUrl:
process.env.API_SERVER_URL ||
`http://localhost:${process.env.PORT || 3000}`,
},
// Database
databaseUrl: process.env.DATABASE_URL || 'sqlite:database.sqlite',
// Web analytics
analytics: {
// https://analytics.google.com/
googleTrackingId: process.env.GOOGLE_TRACKING_ID, // UA-XXXXX-X
},
defaultMeta: {
title: 'React Dashboard',
description:
'React Dashboard Starter project based on react-router 4, redux, graphql, bootstrap',
},
// Authentication
auth: {
jwt: { secret: process.env.JWT_SECRET || 'React Dashboard' },
// https://developers.facebook.com/
facebook: {
id: process.env.FACEBOOK_APP_ID || '186244551745631',
secret:
process.env.FACEBOOK_APP_SECRET || 'a970ae3240ab4b9b8aae0f9f0661c6fc',
},
// https://cloud.google.com/console/project
google: {
id:
process.env.GOOGLE_CLIENT_ID ||
'251410730550-ahcg0ou5mgfhl8hlui1urru7jn5s12km.apps.googleusercontent.com',
secret: process.env.GOOGLE_CLIENT_SECRET || 'Y8yR9yZAhm9jQ8FKAL8QIEcd',
},
// https://apps.twitter.com/
twitter: {
key: process.env.TWITTER_CONSUMER_KEY || 'Ie20AZvLJI2lQD5Dsgxgjauns',
secret:
process.env.TWITTER_CONSUMER_SECRET ||
'KTZ6cxoKnEakQCeSpZlaUCJWGAlTEBJj0y2EMkUBujA7zWSvaQ',
},
},
};