-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfig.js
33 lines (27 loc) · 1.35 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
//----------------------------------------------------------------------------------------------------------------------
// Configuration for Tome
//----------------------------------------------------------------------------------------------------------------------
const DEBUG = ((process.env.DEBUG || '').toLowerCase() === 'true') || false;
const UNIT_TESTS = ((process.env.UNIT_TESTS || '').toLowerCase() === 'true') || false;
//----------------------------------------------------------------------------------------------------------------------
module.exports = {
debug: DEBUG,
overrideAuth: DEBUG,
unitTests: UNIT_TESTS,
secret: process.env.SESSION_SECRET || 'copula ## main beat pen 21 jjg226dh',
key: 'tome_session',
google: {
clientID: '353888173268-4luhg23ai0i6rskck2pjcs4bdssnhshk.apps.googleusercontent.com',
clientSecret: 'ZsjeJtlyB2H3XxUvD4V2JW4Q'
},
http: {
domain: process.env.WEB_DOMAIN || 'http://localhost',
port: process.env.SERVER_PORT || 4321
},
//------------------------------------------------------------------------------------------------------------------
database:
{
connection: { filename: './db/tome.db' }
}
}; // end exports
//----------------------------------------------------------------------------------------------------------------------