LLM-Driven Extraction of Unstructured Data — Built for API Deployments & ETL Pipeline Workflows
Python ai-agentsdata-engineeringdocument-aigenerative-aiidpjson-extractionllmmcp-serverocrpdf-extractionprompt-engineeringstructured-output
FIX: Issue 414 - failing login for domain change (#788)
Ritwik Gaf93d9ef5993
diff --git a/backend/backend/settings/base.py b/backend/backend/settings/base.pyindex 8b3860853..1ebb46bc0 100644--- a/backend/backend/settings/base.py+++ b/backend/backend/settings/base.py@@ -83,8 +83,12 @@ REDIS_DB = os.environ.get("REDIS_DB", "")SESSION_EXPIRATION_TIME_IN_SECOND = os.environ.get("SESSION_EXPIRATION_TIME_IN_SECOND", 3600)-SESSION_COOKIE_SECURE = os.environ.get("SESSION_COOKIE_SECURE", True)-CSRF_COOKIE_SECURE = os.environ.get("CSRF_COOKIE_SECURE", True)+SESSION_COOKIE_SECURE = CommonUtils.str_to_bool(+ os.environ.get("SESSION_COOKIE_SECURE", "False")+)+CSRF_COOKIE_SECURE = CommonUtils.str_to_bool(+ os.environ.get("CSRF_COOKIE_SECURE", "False")+)PATH_PREFIX = os.environ.get("PATH_PREFIX", "api/v1").strip("/")# Resetting the path prefix will require reconfiguring all existing deployed APIsdiff --git a/backend/sample.env b/backend/sample.envindex fcf2f3fc7..887ae5d6b 100644--- a/backend/sample.env+++ b/backend/sample.env@@ -1,5 +1,9 @@DJANGO_SETTINGS_MODULE='backend.settings.dev'+# NOTE: Change below to True if you are running in HTTPS mode.+SESSION_COOKIE_SECURE=False+CSRF_COOKIE_SECURE=False+# Default log levelDEFAULT_LOG_LEVEL="INFO"diff --git a/docker/docker-compose.yaml b/docker/docker-compose.yamlindex 369d1681b..2c4359990 100644--- a/docker/docker-compose.yaml+++ b/docker/docker-compose.yaml@@ -149,7 +149,7 @@ services:- ENVIRONMENT=developmentlabels:- traefik.enable=true- - traefik.http.routers.frontend.rule=Host(`frontend.unstract.localhost`)+ - traefik.http.routers.frontend.rule=Host(`frontend.unstract.localhost`) && !PathPrefix(`/api/v1`, `/deployment`)platform-service:image: unstract/platform-service:${VERSION}