5393feefc5
- webapp/: FastAPI dashboard to add/remove participants and exclusions, view draw history, and trigger the draw (reuses main.run_draw()). Optional HTTP basic auth via WEBAPP_USERNAME/WEBAPP_PASSWORD. - file_io.py: add add/remove_participant, add/remove_exclusion, load_year helpers backing the web GUI's CRUD actions. - Dockerfile + docker-compose.yml: containerize the web GUI, with CSV_PATH bind-mounted to a host folder so participant data persists outside the container. Verified with a local docker compose build/up smoke test. - README: document the web GUI, Docker usage, and the exclusions CSV file (existing feature that wasn't documented yet). Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
22 lines
749 B
Bash
22 lines
749 B
Bash
# Copy this file to .env and fill in your real values.
|
|
# .env is gitignored and is the only place secrets should live.
|
|
|
|
SMTP_SERVER=smtp.example.com
|
|
SMTP_PORT=25
|
|
SENDER_EMAIL=santa@example.com
|
|
CSV_PATH=path/to/your/csv/files
|
|
CSV_PREFIX=secret_santa_DB
|
|
HISTORY_YEARS=2
|
|
DRAW_PER_PERSON=2
|
|
|
|
# Optional overrides — {name}/{draws}/{year} placeholders are filled in at send time.
|
|
# EMAIL_SUBJECT=Secret Santa {year} Draw
|
|
# EMAIL_BODY="Hello {name},\n\nYou have been chosen to give gifts to: {draws}.\n"
|
|
|
|
# Web GUI basic-auth (leave unset to disable auth — not recommended outside localhost)
|
|
WEBAPP_USERNAME=admin
|
|
WEBAPP_PASSWORD=change-me
|
|
|
|
# docker-compose only: host directory bind-mounted to /data (CSV_PATH) in the container.
|
|
# HOST_CSV_PATH=./data
|