diff --git a/backend/app.py b/backend/app.py
index 89508a7..86f94bf 100644
--- a/backend/app.py
+++ b/backend/app.py
@@ -45,6 +45,9 @@ assert elastic_url
jwt_secret = os.getenv("SECRET")
assert jwt_secret
+app_domain = os.getenv("APP_DOMAIN")
+assert app_domain
+
class MeasureTime:
@@ -371,7 +374,7 @@ def create_app():
Please click on the following link to verify your e-mail:
- Click here!
+ Click here!
"""
diff --git a/backend/lib/models.py b/backend/lib/models.py
index 3fef1ef..5c329b9 100644
--- a/backend/lib/models.py
+++ b/backend/lib/models.py
@@ -4,10 +4,7 @@ from elasticsearch_dsl import Document, InnerDoc, Nested, Date, Integer, Keyword
class User(Document):
creation_date = Date()
email = Keyword()
- #password_hash = Text(index=False)
password_hash = Keyword()
- #password_hash = Text(index=True)
-
role = Keyword()
#salt = Text(index=False)
@@ -39,7 +36,6 @@ class Chatbot(Document):
description = Text()
systemPrompt = Text(index=False)
- #slug = Keyword()
files = Nested()
text = Text()
links = Nested()
diff --git a/deployment/sample.env b/deployment/sample.env
index e28cece..7050398 100644
--- a/deployment/sample.env
+++ b/deployment/sample.env
@@ -1,5 +1,6 @@
APP_PREFIX=creative_bots
+APP_DOMAIN=https://chatbot.mysite.net
# DEFAULT_USERS is list of lists, each nested list respectively contains email, password and role
DEFAULT_USERS=[["user@mail.net", "12345", "user"], ["admin@mail.net", "12345", "admin"]]