Files
drawit/.env.example
T
2026-06-29 09:40:43 -05:00

31 lines
1.2 KiB
Bash

# Public URL of the app (used to build confirmation / reset links in emails)
APP_URL=http://localhost:3000
# Secret used to sign/verify session tokens. Use a long random string in production.
SESSION_SECRET=change-me-to-a-long-random-string
# Where the SQLite database file lives (WAL files sit next to it).
DATABASE_PATH=./data/drawit.db
# SMTP for sending account-confirmation and password-reset emails.
# If left blank, links are printed to the server console (handy for local dev).
SMTP_HOST=
SMTP_PORT=587
SMTP_SECURE=false
SMTP_USER=
SMTP_PASS=
SMTP_FROM="DrawIt <no-reply@example.com>"
# --- "Create" feature (AI-generated lessons via a self-hosted ComfyUI) ---
# Leave COMFYUI_URL blank to disable the Create feature entirely.
COMFYUI_URL=http://127.0.0.1:8188
COMFYUI_API_KEY=
# Path to a ComfyUI workflow exported in API format ("Save (API format)").
COMFYUI_WORKFLOW=./comfyui/ColorBook01.json
# Node ids in that workflow: the positive-prompt node and the sampler (seed) node.
COMFYUI_PROMPT_NODE=6
COMFYUI_SEED_NODE=3
# Placeholder inside the positive prompt that gets replaced with the creator's subject.
COMFYUI_SUBJECT_TOKEN=[DrawItSubject]
COMFYUI_TIMEOUT_MS=120000