forked from shikshalokam/sl-kendra-service
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.env.sample
263 lines (205 loc) · 6.84 KB
/
.env.sample
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
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
# Service Config
HOST = ""
PORT = ""
LOG = ""
NODE_ENV = ""
# Setting to turn on/off console.log
ENABLE_DEBUG_LOGGING = ""
# Setting to turn on/off bunyan logger service
ENABLE_BUNYAN_LOGGING = ""
APPLICATION_BASE_URL = ""
APPLICATION_BASE_HOST = ""
AUTHORIZATION = "Server authorization code"
MONGODB_URL = ""
SHIKSHALOKAM_BASE_HOST = ""
DB = ""
# For reports generation.
INTERNAL_ACCESS_TOKEN = "Internal access token to access reports"
# Auth Config
sunbird_keycloak_auth_server_url = ""
sunbird_keycloak_realm = ""
sunbird_keycloak_client_id = ""
sunbird_keycloak_grant_type = ""
sunbird_url = ""
sunbird_keycloak_default_user_creation_channel = "" // Default channel for users.
# sunbird_keycloak_admin_username = "" // Admin username for keycloak
# sunbird_keycloak_admin_password = "" // Admin password for keycloak
sunbird_keycloak_public = true
sunbird_cache_store = ""
sunbird_cache_ttl = ""
sunbird_admin_cli = ""
sunbird_grant_type = ""
# Setting for migrations
MIGRATION_COLLECTION = ""
MIGRATION_DIR = ""
# Slack Configuration
SLACK_COMMUNICATIONS_ON_OFF = ""
SLACK_EXCEPTION_LOG_URL = ""
SLACK_TOKEN = ""
RUBRIC_ERROR_MESSAGES_TO_SLACK = ""
# Elastic Search Configuration
ELASTIC_SEARCH_ERROR_MESSAGE_TO_SLACK = ""
# Disable learner service check
DISABLE_LEARNER_SERVICE_ON_OFF = ""
# Kafka Configuration
KAFKA_COMMUNICATIONS_ON_OFF = ""
KAFKA_URL = "" // IP address of kafka server with port without HTTP
NOTIFICATIONS_TOPIC = "OFF/TOPIC_NAME"
KAFKA_GROUP_ID = ""
KAFKA_ERROR_MESSAGES_TO_SLACK = ""
# Elasticsearch Configuration
ELASTICSEARCH_COMMUNICATIONS_ON_OFF = ""
ELASTICSEARCH_HOST_URL = ""
ELASTICSEARCH_SAMIKSHA_INDEX = ""
ELASTICSEARCH_UNNATI_INDEX = ""
ELASTICSEARCH_SAMIKSHA_NOTIFICATIONS_TYPE = ""
ELASTICSEARCH_ERROR_MESSAGES_TO_SLACK = ""
ELASTICSEARCH_APP_RELEASES_INDEX = ""
ELASTICSEARCH_SHIKSHALOKAM_INDEX = ""
ELASTICSEARCH_DICTIONARY_INDEX = ""
ELASTICSEARCH_DICTIONARY_INDEX_TYPE = ""
ELASTICSEARCH_BODH_CONTENT_INDEX = ""
ELASTICSEARCH_BODH_CONTENT_INDEX_TYPE = ""
ELASTICSEARCH_ENTITIES_INDEX = ""
ELASTICSEARCH_USER_EXTENSION_INDEX = ""
# Firebase Configuration
FCM_KEY_PATH = "/config/credentials/fcm-keystore.json"
IMPROVEMENT_FCM_KEY_PATH = "/config/credentials/improvement-fcm-keystore.json"
ASSESSMENT_FCM_KEY_PATH = "/config/credentials/assessment-fcm-keystore.json"
# All Service Configuration
USER_MANAGEMENT_HOST = ""
USER_MANAGEMENT_BASE_URL = ""
# Cron Job Configuration
SCHEDULE_FOR_PENDING_ASSESSMENT = '0 5 * * *'
SCHEDULE_FOR_PENDING_OBSERVATION = '15 5 * * *'
SCHEDULE_FOR_COMPLETED_ASSESSMENT = '30 5 * * *'
SCHEDULE_FOR_COMPLETED_OBSERVATION = '45 5 * * *'
SCHEDULE_FOR_READ_NOTIFICATION = '0 6 * * *'
SCHEDULE_FOR_UNREAD_NOTIFICATION = '15 6 * * *'
SAMIKSHA_THEME_COLOR = ""
# SMTP
SMTP_SERVICE_HOST = ""
SMTP_SERVICE_SECURE = ""
SMTP_SERVICE_PORT = ""
SMTP_USER_NAME = ""
SMTP_USER_PASSWORD = ""
SMTP_GMAIL_PORT = ""
SMTP_GMAIL_HOST = ""
# Slack error
SLACK_ERROR_NAME = ""
SLACK_ERROR_MESSAGE_COLOR = ""
RED_COLOR = ""
URL_PREFIX = ""
VERSION = ""
appName = ""
# DEFAULT
DEFAULT_REQUEST_TIMEOUT_FOR_REPORTS = 120000
DEFAULT_ENABLE_DEBUG_LOGGING = "ON"
DEFAULT_ELASTIC_SEARCH_HOST = "http://10.160.0.3:9092"
DEFAULT_MONGODB_HOST = "mongodb://localhost:27017"
DEFAULT_MONGODB_DATABASE = "sl-assessment"
DEFAULT_HOST = "http://localhost"
DEFAULT_PORT = 4401
DEFAULT_LOG = "debug"
DEFAULT_NOTIFICATIONS_TOPIC = "sl-notifications-dev"
DEFAULT_LANGUAGE_TOPIC = "sl-languages-dev"
DEFAULT_EMAIL_TOPIC = "sl-email-dev"
DEFAULT_ELASTICSEARCH_SAMIKSHA_INDEX = "samiksha"
DEFAULT_ELASTICSEARCH_SAMIKSHA_NOTIFICATIONS_TYPE = "user-notification"
DEFAULT_ELASTICSEARCH_UNNATI_INDEX = "unnati"
DEFAULT_ELASTICSEARCH_APP_RELEASES_INDEX = "sl-app-releases"
DEFAULT_FCM_KEY_PATH = "/config/fcm-keystore.json"
DEFAULT_FCM_SERVER_KEY = ""
DEFAULT_NODE_ENV = "dev"
DEFAULT_SAMIKSHA_THEME_COLOR = "#A63936"
DEFAULT_APPLICATION_BASE_URL = "/kendra/"
DEFAULT_OBSERVATION_SUBMISSIONS_HTML_PATH = "observationSubmissions"
DEFAULT_REPORTS_PATH = "./public/pushNotifications"
DEFAULT_SAMIKSHA_LANGUAGE_INDEX = "sl-samiskha-languages-dev"
DEFAULT_SAMIKSHA_LANGUAGE_TYPE = "samiksha-i18next"
DEFAULT_UNNATI_LANGUAGE_INDEX = "sl-unnati-languages-dev"
DEFAULT_UNNATI_LANGUAGE_TYPE = "unnati-i18next"
HEALTH_CHECK_URL = "/ping"
BODY_PARSER_LIMIT = '50MB'
LOGGER_DIRECTORY = "logs"
APIDOC_PATH = "/public/apidoc/"
APIDOC_URL = "/kendra/apidoc/*"
DEFAULT_APIDOC_URL = "/apidoc"
PUBLIC_FOLDER_PATH = "public"
ALL_ROUTES = "*"
PATH_TO_HTTP_STATUS_CODE = "/generics/http-status-codes"
PATH_TO_GENERICS_FILE = "/generics/helpers"
CONTROLLER_PATH = '/controllers/v1/'
PATH_TO_MODELS = "/models"
PATH_TO_KAFKA_CONSUMERS = '/generics/kafka-consumers/'
LANGUAGE_PATH = '/locales/'
PATH_TO_KAFKA_CONFIG = "./kafka-config"
PATH_TO_ELASTIC_SEARCH_CONFIG = "./elastic-search-config"
PATH_TO_SMTP_CONFIG = "./smtp-config"
PATH_TO_DB_CONFIG = "./db-config"
PATH_TO_ABSTRACT_FILE = "../generics/abstract"
GOOGLE_API_URL = "https://iid.googleapis.com/iid/info/"
SAMIKSHA_PENDING_ASSESSMENTS = "api/v1/entityAssessors/pendingAssessments"
SAMIKSHA_COMPLETED_ASSESSMENTS = "api/v1/entityAssessors/completedAssessments"
SAMIKSHA_PENDING_OBSERVATIONS = "api/v1/observations/pendingObservations"
SAMIKSHA_COMPLETED_OBSERVATIONS = "api/v1/observations/completedObservations"
ELASTIC_SEARCH_REQUEST_TIMEOUT = 60000
ELASTIC_SEARCH_MAX_RETRIES = 5
ELASTIC_SEARCH_SNIFF_ON_START = true
NOTIFICATIONS_APP_NAME = ""
ASSESSMENT_NOTIFICATION_TYPE = ""
TOPIC_FOR_ALL_USERS = ""
TOPIC_FOR_ANDROID_ALL_USERS = ""
TOPIC_FOR_IOS_ALL_USERS = ""
# Email sender and receivers
SENDER = ""
RECIPIENTS = ""
# Qr generator configuration
QR_GENERATOR_URL = ""
IMAGE_SIZE = ""
QR_CODE_PATH = ""
# Gotenberg configuration
GOTENBERG_HOST = ""
# AWS
AWS_ACCESS_KEY_ID = ""
AWS_BUCKET_ENDPOINT = ""
AWS_SECRET_ACCESS_KEY = ""
AWS_BUCKET_REGION = ""
#AZURE
AZURE_ACCOUNT_NAME = ""
AZURE_ACCOUNT_KEY = ""
AZURE_STORAGE_CONTAINER = ""
AZURE_LINK_EXPIRY_TIME = 86400
# Cloud storage information
QR_CODE_BUCKET_NAME = ""
DEFAULT_BUCKET_NAME = ""
CLOUD_STORAGE = "AWS/GC/AZURE"
# Google cloud storage path
GCP_PATH = ""
GCP_BUCKET_NAME = ""
URL_PREFIX_FOR_STORAGE = ""
# Shikshalokam PUBLISHER
SHIKSHALOKAM_PUBLISHER = ""
# Bodh PUBLISHER
SUNBIRD_ORGANISATION_ID = ""
SUNBIRD_PUBLISHER_USERNAME = ""
SUNBIRD_PUBLISHER_PASSWORD = ""
# Profile notification schedular
SCHEDULE_FOR_PROFILE_PENDING_UPDATE_NOTIFICATION = ""
# Andra Pradesh user organisation id
AP_USERS_ORGANISATION_ID = ""
# CASSANDRA DATABASE CONFIGURATION
CASSANDRA_HOST = ""
CASSANDRA_PORT = ""
CASSANDRA_DB = ""
# OFFLINE TOKEN VALIDATION
VALIDATE_ACCESS_TOKEN_OFFLINE = "ON/OFF"
KEYCLOAK_PUBLIC_KEY_PATH = "keycloak-public-keys"
#sunbird application
SUNBIRD_SERIVCE_HOST = ""
SUNBIRD_SERIVCE_BASE_URL = ""
#APP TYPE
ASSESSMENT_APP_TYPE = "assessment"
IMPROVEMENT_APP_TYPE= "improvement-project"
ASSESSMENT_SERVICE_HOST = "http://localhost:4201"
ASSESSMENT_SERVICE_BASE_URL = "/assessment/"