-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathenv-variables.js
67 lines (48 loc) · 2.47 KB
/
env-variables.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
58
59
60
61
62
63
64
65
66
67
const os = require('os');
const envVariables = {
serviceId: process.env.NAME || 'xstate-chatbot',
ver: process.env.VERSION || '0.0.1',
port: process.env.SERVICE_PORT || 8080,
contextPath: process.env.CONTEXT_PATH || '/xstate-chatbot',
staticMediaPath: process.env.STATIC_MEDIA_PATH || 'resources/assets/static-media',
dynamicMediaPath: process.env.DYNAMIC_MEDIA_PATH || 'resources/assets/dynamic-media',
whatsAppProvider: process.env.WHATSAPP_PROVIDER || 'console',
serviceProvider: process.env.SERVICE_PROVIDER || 'Dummy',
repoProvider: process.env.REPO_PROVIDER || 'InMemory',
whatsAppBusinessNumber: process.env.WHATSAPP_BUSINESS_NUMBER || '917834811114',
rootTenantId: process.env.ROOT_TENANTID || 'in',
supportedLocales: process.env.SUPPORTED_LOCALES || 'en_IN,hi_IN', // Unused
dateFormat: process.env.DATEFORMAT || 'DD/MM/YYYY',
timeZone: process.env.TIMEZONE || 'Asia/Kolkata',
postgresConfig: {
dbHost: process.env.DB_HOST || 'localhost',
dbPort: process.env.DB_PORT || '5432',
dbName: process.env.DB_NAME || 'chat',
dbUsername: process.env.DB_USER || 'postgres',
dbPassword: process.env.DB_PASSWORD || ''
},
hasuraAdminSecret: process.env.HASURA_ADMIN_SECRET || '',
hasuraUrl: process.env.HASURA_URL || '',
services: {
encryptionServiceHost: process.env.ENCRYPTION_SERVICE_HOST || 'http://localhost:1234',
encryptionServiceEncryptUrl: '/egov-enc-service/crypto/v1/_encrypt',
encryptionServiceDecryptUrl: '/egov-enc-service/crypto/v1/_decrypt',
encryptionServiceHashUrl: '/egov-enc-service/crypto/v1/_hash'
},
gupshup: {
botname: process.env.GUPSHUP_BOT_NAME || 'SwasthAppBot',
apikey: process.env.GUPSHUP_API_KEY || ''
},
kaleyra: {
sendMessageUrl: process.env.KALEYRA_SEND_MESSAGE_URL || 'https://api.kaleyra.io/v1/{{sid}}/messages',
sid: process.env.KALEYRA_SID || '',
apikey: process.env.KALEYRA_API_KEY || '',
},
kafka: { // Unused
kafkaBootstrapServer: process.env.KAFKA_BOOTSTRAP_SERVER || 'localhost:9092',
chatbotTelemetryTopic: process.env.CHATBOT_TELEMETRY_TOPIC || 'chatbot-telemetry-v2',
kafkaConsumerEnabled: process.env.KAFKA_CONSUMER_ENABLED || true,
kafkaConsumerGroupId: process.env.KAFKA_CONSUMER_GROUP_ID || 'xstate-chatbot',
},
}
module.exports = envVariables;