-
Notifications
You must be signed in to change notification settings - Fork 5
/
config.js
49 lines (45 loc) · 1.32 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
const path = require('path');
const root = path.resolve(__dirname);
const buildLocation = path.join(root, 'public', 'build');
const uploadLocation = path.join(root, 'public', 'upload');
const appURL = process.env.APP_URI || 'http://localhost';
const port = process.env.PORT || 3000;
module.exports = {
root,
buildLocation,
uploadLocation,
favicon: path.join(root, 'public', 'favicon', 'favicon.ico'),
hostname: 'localhost',
port,
devServerPort: 8080,
appURL,
mongoURL: process.env.MONGODB_URI || 'mongodb://localhost/question-it',
mockViewer: process.env.MOCK_VIEWER || '578db69904ec1604238533ca',
auth: {
state: process.env.OAUTH_STATE,
jwt: {
secret: process.env.JWT_SECRET || 'wowsuchsecretsosecretary',
},
facebook: {
id: process.env.FACEBOOK_ID,
secret: process.env.FACEBOOK_SECRET,
callbackURL: '/facebook/callback',
},
google: {
id: process.env.GOOGLE_ID,
secret: process.env.GOOGLE_SECRET,
callbackURL: '/google/callback',
},
linkedin: {
id: process.env.LINKEDIN_ID,
secret: process.env.LINKEDIN_SECRET,
callbackURL: '/linkedin/callback',
},
},
universalWebpack: {
server: {
input: path.join(root, 'server', 'server.jsx'),
output: path.join(buildLocation, 'server', 'server.js'),
},
},
};