-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.js
35 lines (32 loc) · 920 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
27
28
29
30
31
32
33
34
35
require('dotenv').config()
const env = process.env.NODE_ENV;
var config = {
db: {
type: 'mongodb',
host: process.env.DB_HOST,
dbname: process.env.DB_NAME,
username: process.env.DB_USER,
password: process.env.DB_PWD
},
auth: {
google: {
clientID: process.env.GOOGLE_CLIENT_ID,
clientSecret: process.env.GOOGLE_CLIENT_SECRET,
callbackURL: 'http://localhost:3000/auth/google/callback'
}
},
tba: {
api_url: 'https://www.thebluealliance.com/api/v3',
api_key: process.env.TBA_API_KEY
},
email: {
email_address: process.env.NOTI_EMAIL,
email_password: process.env.NOTI_PASS
}
};
// override production settings
if (env == 'production') {
config.auth.google.callbackURL = "https://firstalert.herokuapp.com/auth/google/callback"
}
// export
module.exports = config;