- before_request guard: visitors browse + explore; writes need PHYSCOM_ADMIN_TOKEN login - SameSite=Lax/HttpOnly cookies, persisted secret key, debug off unless FLASK_DEBUG=1 - non-root gunicorn container with healthcheck; physcom demo --if-empty on first start - landing page Top Concepts, write controls hidden from visitors - CI workflow, pyproject metadata, compose Ollama parity, README rewrite - tests/test_web_access.py: access control + GET smoke test of every page Co-Authored-By: Claude <noreply@anthropic.com>
23 lines
797 B
Plaintext
23 lines
797 B
Plaintext
# Copy to .env — FLASK_SECRET_KEY is auto-generated (and saved next to the DB) if omitted.
|
|
FLASK_SECRET_KEY=
|
|
|
|
# Web visitors are read-only unless logged in at /login with this token.
|
|
# Leave blank for a fully read-only public site. `python -m physcom_web`
|
|
# (the localhost dev server) is open when this is blank.
|
|
PHYSCOM_ADMIN_TOKEN=
|
|
# Set to 1 when served over HTTPS so the session cookie is Secure-only.
|
|
PHYSCOM_SECURE_COOKIES=0
|
|
|
|
# LLM provider for the optional pass 4 review (leave blank to skip it)
|
|
# Supported: gemini, ollama
|
|
LLM_PROVIDER=
|
|
|
|
# Gemini (required when LLM_PROVIDER=gemini)
|
|
# Install: pip install -e '.[gemini]' (from repo root)
|
|
GEMINI_API_KEY=
|
|
GEMINI_MODEL=gemini-2.0-flash
|
|
|
|
# Ollama (used when LLM_PROVIDER=ollama)
|
|
OLLAMA_MODEL=qwen2.5:7b
|
|
OLLAMA_HOST=http://localhost:11434
|