forked from samagra-comms/docker-deploy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.env
executable file
·233 lines (190 loc) · 6.43 KB
/
.env
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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
# .env is a work in progress, you might see repeated variables. We will clean this up in later versions
### For Fusionauth Service
FUSIONAUTH_POSTGRES_USER=postgres
FUSIONAUTH_POSTGRES_DBNAME=postgres
FUSIONAUTH_POSTGRES_PASSWORD=postgres
FUSIONAUTH_POSTGRES_PORT=5432
FUSIONAUTH_DATABASE_USER=fusionauth
FUSIONAUTH_DATABASE_USERNAME=fusionauth
FUSIONAUTH_DATABASE_PASSWORD=hkaLBM3RVnyYeYeqE3WI1w2e4Avpy0Wd5O3s3
FUSIONAUTH_APP_KICKSTART_FILE=/usr/local/fusionauth/kickstart/kickstart.json
FUSIONAUTH_API_KEY=4737ea8520bd454caabb7cb3d36e14bc1832c0d3f70a4189b82598670f11b1bd
ES_JAVA_OPTS=-Xms1024m -Xmx1024m
# Prior to version 1.19.0, using FUSIONAUTH_MEMORY
FUSIONAUTH_MEMORY=2048M
# >= 1.19.0, using FUSIONAUTH_APP_MEMORY
FUSIONAUTH_APP_MEMORY=2048M
FUSIONAUTH_ADMIN_PASSWORD=mySecurePassword
### ------------------------------------------------------- ###
### For ODK
ODK_POSTGRES_PASSWORD=aggregate
ODK_POSTGRES_USER=aggregate
ODK_POSTGRES_DB=aggregate
### For UCI APIs
# Postgres
PSQL_DB_URL=postgres://postgresql:yoursupersecret@uci-api-db:5432/comms
PSQL_DB_URL_DEV=postgres://postgresql:yoursupersecret@uci-api-db:5432/comms
UCI_API_POSTGRES_PASSWORD=yoursupersecret
UCI_API_POSTGRES_USER=postgresql
UCI_API_POSTGRES_DB=comms
DATABASE_DEBUG=true
POSTGRES_HOST=uci-api-db
POSTGRES_USER=postgresql
POSTGRES_PASSWORD=yoursupersecret
POSTGRES_DB=comms
# Redis
REDIS_HOST=scheduler-db
REDIS_PORT=6379
REDIS_PASS=foobared
# Kafka
KAFKA_HOST_DEV=kafka:9092
KAFKA_USER=admin
KAFKA_PASS=admin-secret
KAFKA_HOST=kafka
KAFKA_PORT=9092
KAFKA_LOG_LEVEL=WARN
ODK_SERVICE=http://aggregate-server:8080/
ODK_USERNAME=administrator
# This is the default password.. currently ODK is not automated to pick password from .env file. If you change ODK's password it has to be manually
# updated on ODK aggreagte
ODK_PASSWORD=aggregate
# FusionAuth
FUSIONAUTH_URL=http://fusionauth:9011/
FUSIONAUTH_KEY=4737ea8520bd454caabb7cb3d36e14bc1832c0d3f70a4189b82598670f11b1bd
FA_ANONYMOUS_BOT_ID=1536f2d5-813f-43db-a40d-c64803d3648e
# Hasura
HASURA_GRAPHQL_DATABASE_URL=postgres://postgresql:yoursupersecret@uci-api-db:5432/comms
HASURA_GRAPHQL_ENABLE_CONSOLE=true
HASURA_GRAPHQL_ENABLED_LOG_TYPES=startup, http-log, webhook-log, websocket-log, query-log
HASURA_GRAPHQL_ADMIN_SECRET=4GeEB2JCU5rBdLvQ4AbeqqrPGu7kk9SZDhJUZm7A
# Other Services
UCI_CORE_BASE_URL=http://inbound:8085
TRANSFORMER_BASE_URL=http://transformer:9091/odk/updateAll
GRAPHQL_BASE_URL=http://uci-api-db-gql:8080
CAMPAIGN_URL=http://localhost:9999/
INBOUND_URL=http://inbound:8085/
# Encryption Key
ENCRYPTION_KEY=# Get this from administrator
ENV=prod
ADMIN_TOKEN=EXnYOvDx4KFqcQkdXqI38MHgFvnJcxMS
### ------------------------------------------------------- ###
### For UCI Core
#External Services
CAMPAIGN_URL=http://uci-api-service:9999
CAMPAIGN_ADMIN_TOKEN=EXnYOvDx4KFqcQkdXqI38MHgFvnJcxMS
#Kafka
BOOTSTRAP_SERVERS=kafka:9092
AUTH_USER_INFO=AHT5ARJADMKT7PFK:FWMCOwqUsipu4vpKm+cUdIEyNUGdqsytyWGnBzd/IJgidrcXyKDiNvEEFX82FtQg
KAFKA_INBOUND_PROCESSED_TOPIC=inbound-processed
KAFKA_CAMPAIGN_TOPIC=campaign
KAFKA_INBOUND_UNPROCESSED_TOPIC=inbound-unprocessed
KAFKA_INBOUND_GS_OPTED_OUT_TOPIC=gs-opted-out
KAFKA_INBOUND_ERROR_TOPIC=inbound-error
KAFKA_OUTBOUND_TOPIC=outbound
KAFKA_TELEMETRY_TOPIC=telemetry
KAFKA_ODK_TRANSFORMER_TOPIC=com.odk.transformer
KAFKA_ODK_TRANSFORMER_TOPIC_PATTERN=com.odk.*
KAFKA_LOGS_TOPIC=uci-telemetry-logs
KAFKA_BROADCAST_TRANSFORMER_TOPIC=broadcast-transformer
KAFKA_PROCESS_OUTBOUND=process-outbound
KAFKA_MESSAGE_REPORT_TOPIC=message-report
KAFKA_GENERIC_TRANSFORMER_TOPIC=generic-transformer
#FormsDB
FORMS_DB_HOST=formsdb
FORMS_DB_NAME=formsdb
FORMS_DB_PASSWORD=yoursupersecret
FORMS_DB_PORT=5432
FORMS_DB_URL=postgresql://formsdb:5432/formsdb
FORMS_DB_USERNAME=postgresql
#ODK
ODK_PASS=aggregate
ODK_URL=http://aggregate-server:8080/
ODK_USER=administrator
#Fusion Auth
FUSIONAUTH_KEY=4737ea8520bd454caabb7cb3d36e14bc1832c0d3f70a4189b82598670f11b1bd
FUSIONAUTH_URL=http://fusionauth:9011/
#Cassandra
CASSANDRA_URL=cass
CASSANDRA_PORT=9042
CASSANDRA_KEYSPACE=testkeyspace
# set this to 6 after first run
CASSANDRA_MIGRATION_COUNT=0
#Ports
INBOUND_INTERNAL_PORT=8085
INBOUND_EXTERNAL_PORT=9080
OUTBOUND_INTERNAL_PORT=9090
ORCHESTRATOR_INTERNAL_PORT=8686
TRANSFORMER_INTERNAL_PORT=9091
BROADCAST_TRANSFORMER_INTERNAL_PORT=9093
#Assesment Check Characters
ASSESSMENT_GO_TO_START_CHAR=*
ASSESSMENT_ONE_LEVEL_UP_CHAR=#
CURRENT_VERSION=v2.1.11
XMSG_USER_DATA_BEFORE_HOUR=20.5
#PWA Adapter
PWA_TRANSPORT_SOCKET_BASE_URL=http://uci-transport-socket:3005/
#Netcore
NETCORE_WHATSAPP_AUTH_TOKEN=token
NETCORE_WHATSAPP_SOURCE=source
NETCORE_WHATSAPP_URI=https://waapi.pepipost.com/api/v2/
#Redis
REDIS_DB_INDEX=6
REDIS_HOST=redis
REDIS_PORT=6379
#Minio CDN
# Minio needs to be setup externally using -> https://github.com/Samagra-Development/minio-oauth2-docs
CDN_MINIO_LOGIN_ID=loginId
CDN_MINIO_APP_ID=2011a6c9-7fb7-4306-8c6d-c96cb07c7859
CDN_MINIO_BUCKET_ID=bucketId
CDN_MINIO_FA_KEY=token
CDN_MINIO_FA_URL=http://auth.samagra.io:9011/
CDN_MINIO_PASS=pass
CDN_MINIO_URL=https://cdn.samagra.io/
#Azure Blob Storage
AZURE_BLOB_STORE_ACCOUNT_KEY=accountNaAme
AZURE_BLOB_STORE_ACCOUNT_NAME=accountKey
AZURE_BLOB_STORE_CONTAINER=container
#CDN Config
SELECTED_FILE_CDN=minio
TEMPLATE_SERVICE_BASE_URL=http://139.59.47.112:3009
CDAC_BASE_URL=http://cdac:9095
### ------------------------------------------------------- ###
#Vault Credentials
VAULT_FUSION_AUTH_URL=http://fusionauth:9011
VAULT_FUSION_AUTH_TOKEN=token
VAULT_SERVICE_URL=http://uci-api-service:3002
VAULT_SERVICE_TOKEN=token
# telemetry events - exhaust, posthog enabled
EXHAUST_TELEMETRY_ENABLED=TRUE
POSTHOG_EVENT_ENABLED=TRUE
TELEMETRY_EVENT_PDATA_ID=dev.uci.samagra
# Generate this by going to app.posthog.com and creating a new key
POSTHOG_TELEMETRY_APIKEY=posthogkey
POSTHOG_TELEMETRY_URL=https://app.posthog.com/
# uci-admin
# These variables are needed at build time
NG_APP_url=''
NG_APP_nl_url=''
NG_APP_nl_login_url=''
NG_APP_nl_login_token=''
NG_APP_nl_application_id=''
NG_APP_blobUrl=''
NG_APP_botPhoneNumber=''
NG_APP_adapterId=''
NG_APP_broadcastAdapterId=''
NG_APP_userId=''
NG_APP_orgId=''
NG_APP_token=''
NG_APP_conversationAdapterId=''
# VAULT for UCI
VAULT_TOKEN=vaultoken
VAULT_ADDR=http://vault:8200
#for notification key enable/disable when notification triggered
NOTIFICATION_KEY_ENABLE=false
#Email Config
EMAIL_HOST=smtp.gmail.com
EMAIL_PASSWORD=testpass
EMAIL_PORT=587