-
Notifications
You must be signed in to change notification settings - Fork 133
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #442 from hellohaptik/develop
Develop to Master 2021-10-13
- Loading branch information
Showing
19 changed files
with
405 additions
and
292 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
# This is .env.example file for chatbot_ner module to hold settings | ||
# Copy it to a docker/.env and fill in all the values. | ||
# Never push your personal keys and passwords to any public repository! | ||
# Please don't add spaces around '=' | ||
|
||
NAME=chatbot_ner | ||
DJANGODIR=/app | ||
ENVIRONMENT=development | ||
DJANGO_LOG_LEVEL=DEBUG | ||
DJANGO_SETTINGS_MODULE=chatbot_ner.settings | ||
DJANGO_WSGI_MODULE=chatbot_ner/wsgi.py | ||
# Important: Change the value of SECRET_KEY to something else and keep it secret | ||
SECRET_KEY=!yqqcz-v@(s@kpygpvomcuu3il0q1&qtpz)e_g0ulo-sdv%c0c | ||
|
||
NUM_WORKERS=1 | ||
MAX_REQUESTS=1000 | ||
PORT=8081 | ||
TIMEOUT=600 | ||
|
||
# This is the primary engine to use for datastore. Valid values are one of the following: ['elasticsearch'] | ||
ENGINE=elasticsearch | ||
|
||
# ES prefixed variables correspond to settings for elasticsearch. | ||
# ES_URL is the complete url with auth name and password required to connect. If provided, this will override ES_HOST, | ||
# ES_PORT, ES_AUTH_NAME, ES_AUTH_PASSWORD | ||
# ES_HOST and ES_PORT by default is host for ES that comes up with compose | ||
|
||
ES_URL= | ||
ES_AUTH_NAME= | ||
ES_AUTH_PASSWORD= | ||
ES_SCHEME=http | ||
ES_HOST=elasticsearch | ||
ES_PORT=9200 | ||
ES_ALIAS=entity_data | ||
ES_INDEX_1=entity_data_v1 | ||
ES_INDEX_2= | ||
ES_DOC_TYPE=data_dictionary | ||
ELASTICSEARCH_CRF_DATA_INDEX_NAME=entity_examples_data | ||
ELASTICSEARCH_CRF_DATA_DOC_TYPE=training_dictionary | ||
|
||
ES_REQUEST_TIMEOUT=20 | ||
ES_BULK_MSG_SIZE=1000 | ||
ES_SEARCH_SIZE=10000 | ||
|
||
# Auth variables if ES is hosted on AWS | ||
ES_AWS_ACCESS_KEY_ID= | ||
ES_AWS_REGION= | ||
ES_AWS_SECRET_ACCESS_KEY= | ||
ES_AWS_SERVICE= | ||
|
||
DESTINATION_ES_SCHEME= | ||
DESTINATION_HOST= | ||
DESTINATION_PORT= | ||
|
||
# In order to enable entity detection for multiple languages, we use google translate. Please enter the key(optional) | ||
GOOGLE_TRANSLATE_API_KEY= | ||
|
||
# Application performance and error alerting | ||
ELASTIC_APM_ENABLED=False | ||
ELASTIC_APM_SERVER_URL= | ||
SENTRY_ENABLED=False | ||
SENTRY_DSN= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# pylint: disable=W1618 | ||
""" | ||
ASGI config for chatbot_ner project. | ||
It exposes the ASGI callable as a module-level variable named ``application``. | ||
For more information on this file, see | ||
https://docs.djangoproject.com/en/3.2/howto/deployment/asgi/ | ||
""" | ||
|
||
import os | ||
|
||
from django.core.asgi import get_asgi_application | ||
|
||
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'chatbot_ner.settings') | ||
|
||
application = get_asgi_application() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.