This repository has been archived by the owner on Nov 5, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.js
49 lines (47 loc) · 1.72 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
if (process.env.NODE_ENV !== 'production') {
require('dotenv').config()
}
function getValidLines () {
let lines = ['PC17', 'PC17x', 'PC17-KJØPx2', 'PC18']
if (process.env.VALID_LINES) {
lines = process.env.VALID_LINES.split(',')
}
return lines
}
module.exports = {
DONE_DIRECTORY_PATH: process.env.DONE_DIRECTORY_PATH || 'test/directories/done',
ERRORS_DIRECTORY_PATH: process.env.ERRORS_DIRECTORY_PATH || 'test/directories/errors',
JOBS_DIRECTORY_PATH: process.env.JOBS_DIRECTORY_PATH || 'test/directories/jobs',
QUEUE_DIRECTORY_PATH: process.env.QUEUE_DIRECTORY_PATH || 'test/directories/queue',
DSF_SERVICE_URL: process.env.DSF_SERVICE_URL || 'https://dsf.service.io',
DSF_SERVICE_JWT: process.env.DSF_SERVICE_JWT || 'Louie Louie oh no I got to go Louie Louie oh no I got to go',
KOR_SERVICE_URL: process.env.KOR_SERVICE_URL || 'https://kor.service.io',
KOR_SERVICE_JWT: process.env.KOR_SERVICE_JWT || 'Louie Louie oh no I got to go Louie Louie oh no I got to go',
PAPERTRAIL_HOSTNAME: process.env.PAPERTRAIL_HOSTNAME || 'avtale-generator',
PAPERTRAIL_HOST: process.env.PAPERTRAIL_HOST || 'logs.papertrailapp.com',
PAPERTRAIL_PORT: process.env.PAPERTRAIL_PORT || 12345,
VALID_LINES: getValidLines(),
FILE_ENCODING: process.env.FILE_ENCODING || 'utf8',
fakturaLinjer: {
PC17: {
partNumber: 103,
amount: 1032,
note: 'Leasing elev-PC skoleåret 2018-2019'
},
'PC17-KJØPx2': {
partNumber: 105,
amount: 2064,
note: 'Kjøp av elev-PC'
},
PC17x: {
partNumber: 104,
amount: 2046,
note: 'Leie av elev-PC skoleåret 2017-2019'
},
PC18: {
partNumber: 103,
amount: 1032,
note: 'Leasing elev-PC skoleåret 2018-2019'
}
}
}