# Paper Atlas 1.5 environment overrides (OPTIONAL)
#
# You normally do NOT need this file: open the dashboard, go to "Settings" and
# fill in the DeepSeek API key there - it is saved to data/config.json.
#
# Variables listed here win over the values stored in data/config.json, which is
# handy for automation, CI or a shared machine.
#
# Copy this file to ".env" only if you really want environment-based config;
# the app reads ".env" automatically with its built-in parser.

# --- DeepSeek (optional) ---------------------------------------------------- #
# DEEPSEEK_API_KEY=your-deepseek-api-key
# DEEPSEEK_MODEL=deepseek-chat
# DEEPSEEK_BASE_URL=https://api.deepseek.com

# --- server ---------------------------------------------------------------- #
# PAPER_ATLAS_HOST=127.0.0.1
# PAPER_ATLAS_PORT=8765
# HOST=127.0.0.1
# PORT=8765

# --- behaviour ------------------------------------------------------------- #
# PAPER_ATLAS_AI_ENABLED=1
# PAPER_ATLAS_OPEN_BROWSER=1
# PAPER_ATLAS_LANG=zh
# ENABLE_FIREFOX_FALLBACK=0

# Optional: keep logs/jobs outside the default data folder
# PAPER_ATLAS_LOG_DIR=/absolute/path/to/logs
# PAPER_ATLAS_JOBS_DB=/absolute/path/to/jobs.db

# --- launcher -------------------------------------------------------------- #
# Force a specific interpreter (useful on servers with several Pythons):
# PAPER_ATLAS_PYTHON=/usr/bin/python3.12
# Skip the first-run language prompt:
# PAPER_ATLAS_NO_PROMPT=1
# Disable coloured output:
# NO_COLOR=1

# --- Literature Review / Elsevier (all optional) --------------------------- #
# The dashboard's "Literature Review" tab works without an Elsevier key by
# falling back to OpenAlex + Crossref, and labels that fallback explicitly.
# ELSEVIER_API_KEY=your-sciencedirect-api-key
# ELSEVIER_INSTTOKEN=your-institutional-token
# REVIEW_CONTACT_EMAIL=you@example.org
# UNPAYWALL_EMAIL=you@example.org

# Firefox manual handoff (system Firefox, not Playwright)
# FIREFOX_BINARY=/usr/bin/firefox
# LITERATURE_REVIEW_DATA_DIR=/absolute/path/to/isolated/data
# Disable the background download watcher (development only)
# LITERATURE_REVIEW_DISABLE_WATCHER=1

# --- LAN access gate ------------------------------------------------------- #
# Fixed access code. If unset, one is generated on first start and stored in
# data/config.json. Change it in Settings, here, or in data/config.json.
# PAPER_ATLAS_ACCESS_CODE=PA-XXXX-XXXX
# Development only: bypass the access gate (never use in normal operation)
# PAPER_ATLAS_AUTH_DISABLED=1

# Force automatic analysis after download (default: off; analyze from Local papers).
# LITERATURE_REVIEW_AUTO_ANALYZE=1