← back to Dw Photo Capture
.env.example
33 lines
# dw-photo-capture env — copy to .env on the server; provision secrets via the `secrets` skill.
# On Kamatera (Linux) macvision + local Ollama don't exist, so Gemini is the working engine.
PORT=9890
# Vision engine default: 'gemini' on the server (macvision only exists on the Mac).
OCR_ENGINE=gemini
GEMINI_API_KEY= # REQUIRED on server — master Gemini key (secrets: GEMINI_API_KEY)
GEMINI_VISION_MODEL=gemini-2.5-flash
# Optional 3rd engine — Google Cloud Vision OCR (needs a Vision-API-enabled key). Leave empty to
# disable; the engine then reports unavailable and 'all' just skips it.
GCV_API_KEY=
# Basic-auth gate (defaults admin/DW2024! if unset — override on a public host).
AUTH_USER=admin
AUTH_PASS=DW2024!
# Shopify (SKU resolution / product features) — read-only Admin token (secrets: SHOPIFY_ADMIN_TOKEN).
SHOPIFY_ADMIN_TOKEN=
# Postgres dw_unified (pattern-recognize similar-items + mfr→house-sku). The app shells to psql
# with `-d $DW_UNIFIED_DB`, so this can be a plain db name (local peer auth) OR a full conninfo URI.
# On Kamatera the app runs as root (no PG role), so use the URI form with real creds:
# DW_UNIFIED_DB=postgresql://dw_admin:<pw>@127.0.0.1:5432/dw_unified (same creds as other DW apps' MICROSITE_DB_URL)
# NB: dw_unified.shopify_products has NO min_variant_price column (schema differs from mac2).
PSQL=/usr/bin/psql
DW_UNIFIED_DB=dw_unified
# macvision-only (ignored on Linux): local Ollama for logo identify when OCR_ENGINE=macvision.
OLLAMA_URL=http://127.0.0.1:11434
OLLAMA_VISION_MODEL=qwen2.5vl:7b