Files
yolkbook/.env.example
derekc 958c409e8e Fix bugs, data integrity, and cache busting
- models.py: add UniqueConstraint(user_id, date) to flock_history so
  duplicate flock entries for the same day are rejected at the DB level
- main.py: v2.3 migration applies the new unique constraint to existing
  installs at startup
- login.html: update register form minlength and placeholder from 6 to 10
  characters to match backend; add specific 429 error message so rate-
  limited users see "Too many attempts — please wait a minute" instead of
  a generic failure
- auth.js: update settings modal password input minlength from 6 to 10
- summary.js: fix CSV export truncation — pass limit=10000 so users with
  more than 500 days of data get a complete export; read chart border color
  from --green CSS variable instead of hardcoded hex
- All HTML files: bump JS version params to ?v=4 so browsers discard
  cached copies of files changed across recent sessions (api.js, auth.js,
  dashboard.js, history.js, log.js, flock.js, budget.js, summary.js,
  admin.js)
- .env.example: add password strength guidance for MySQL and admin vars

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-18 00:27:02 -07:00

21 lines
1.2 KiB
Plaintext

# Copy this file to .env and fill in your values before starting the stack.
# cp .env.example .env
# ── MySQL ─────────────────────────────────────────────────────────────────────
# Use strong random passwords — generate with: openssl rand -hex 16
MYSQL_ROOT_PASSWORD=change_me
MYSQL_DATABASE=eggtracker
MYSQL_USER=eggtracker
MYSQL_PASSWORD=change_me
# ── Super admin ───────────────────────────────────────────────────────────────
# This account is created (and its password synced) automatically on every startup.
# Use a strong password of at least 10 characters.
ADMIN_USERNAME=admin
ADMIN_PASSWORD=change_me
# ── JWT signing secret ────────────────────────────────────────────────────────
# Generate a strong random value before deploying:
# openssl rand -hex 32
JWT_SECRET=change_me