~95% on SimpleQA (e.g. Qwen3.6-27B on a 3090). Supports all local and cloud LLMs (llama.cpp, Ollama, Google, ...). 10+ search engines - arXiv, PubMed, your private documents. Everything Local & Encrypted.
Python academiaanthropicarxivbravedeep-researchencryptionhome-automationhomeserverlocallocal-deep-researchlocal-llmmistralollamaopenaipubmedresearchresearch-toolretrieval-augmented-generationsearxngself-hosted
Merge branch 'dev' into feature/comprehensive-library-tests
LearningCircuit05ea36085739
diff --cc src/local_deep_research/web/app_factory.pyindex b9d4aba9ff,687e752428..f536b02170--- a/src/local_deep_research/web/app_factory.py+++ b/src/local_deep_research/web/app_factory.py@@@ -90,15 -104,22 +104,26 @@@ def create_app()except Exception as e:logger.warning(f"Could not save secret key file: {e}")app.config["SECRET_KEY"] = new_key- app.config["SESSION_COOKIE_SECURE"] = False # Allow HTTP for local testing- app.config["SESSION_COOKIE_HTTPONLY"] = True- app.config["SESSION_COOKIE_SAMESITE"] = "Lax"+ # Session cookie security settings+ # SECURE: Only send cookies over HTTPS in production+ # Allow HTTP cookies in debug mode, CI/test environments+ is_testing = (+ os.getenv("CI")+ or os.getenv("TESTING")+ or os.getenv("PYTEST_CURRENT_TEST")+ or app.debug+ )+ app.config["SESSION_COOKIE_SECURE"] = not is_testing+ app.config["SESSION_COOKIE_HTTPONLY"] = (+ True # Prevent JavaScript access (XSS mitigation)+ )+ app.config["SESSION_COOKIE_SAMESITE"] = "Lax" # CSRF protectionapp.config["PERMANENT_SESSION_LIFETIME"] = 7200 # 2 hours in seconds- app.config["PREFERRED_URL_SCHEME"] = "https"+ # Only set PREFERRED_URL_SCHEME in production, not in testing+ # This prevents test requests from incorrectly appearing as HTTPS+ # Check both TESTING config and environment variable (set by pytest)+ if not (app.config.get("TESTING", False) or os.environ.get("TESTING")):+ app.config["PREFERRED_URL_SCHEME"] = "https"# File upload security limits - calculated from FileUploadValidator constantsapp.config["MAX_CONTENT_LENGTH"] = (