-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.docker.js
57 lines (52 loc) · 1.2 KB
/
config.docker.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
/* This config file is used to build the docker image */
const fs = require('fs')
function secret(name) {
try {
return fs.readFileSync('/run/secrets/' + name).toString()
} catch (ex) {
return process.env[name]
}
}
module.exports = {
bot: {
token: secret('TUDEBOT_DBOT_TOKEN'),
clientid: secret('TUDEBOT_DBOT_ID') || '268461185173684224'
},
mongodb: {
url: secret('TUDEBOT_MONGO_URL')
},
thirdparty: {
wit: {
token: secret('TUDEBOT_WIT_TOKEN')
},
obrazium: {
token: secret('TUDEBOT_OBRAZIUM_TOKEN')
},
googleapis: {
key: secret('TUDEBOT_GOOGLE_KEY')
},
ksoft: {
token: secret('TUDEBOT_KSOFT_TOKEN')
},
alexa: {
key: secret('TUDEBOT_ALEXA_KEY')
},
gibuapis: {
gqlEndpoint: secret('TUDEBOT_GIBU_GQL_ENDPOINT') || '',
pipelineEndpoint: secret('TUDEBOT_GIBU_PIPELINE_ENDPOINT') || '',
key: ''
}
},
security: {
vaultPublicKeyPath: secret('TUDEBOT_VAULT_PUBLIC_KEY_PATH') || '',
vaultPrivateKeyPath: secret('TUDEBOT_VAULT_PRIVATE_KEY_PATH') || ''
},
server: {
port: 80,
publicHost: 'https://tudebot.tude.network'
},
lang: 'en',
admins: [
'137258778092503042'
]
}