Files
chitai/.env.prod-example
T
patrick d78b21c27f feat: check for duplicate files when importing books
Incoming files are matched against what is already stored, keyed on the
KOReader hash and the file size. Bulk uploads skip and report them, deliberate
creates are refused with a 409, the consume directory parks them aside, and
allow_duplicates overrides all three.

Also: books whose metadata generates a path another book already owns are moved
aside, so a forced copy cannot overwrite the original's files.
2026-08-13 17:23:48 -04:00

26 lines
877 B
Bash

# Change this secret to something random
CHITAI_TOKEN_SECRET=secret
# Setup the path to your initial library (optional)
CHITAI_DEFAULT_LIBRARY_NAME=Books
CHITAI_DEFAULT_LIBRARY_PATH="libraries/books"
# Duplicate detection when importing files (optional).
# Scope: "library" compares against the library being uploaded to, "global" against
# every library, "off" disables the check.
CHITAI_DUPLICATE_SCOPE=library
# Where the consume watcher parks files it refused as duplicates. Keep it outside
# CHITAI_CONSUME_PATH, or the watcher picks them straight back up.
CHITAI_DUPLICATE_PATH="duplicates"
# You probably should not change these
CHITAI_API_URL="http://backend:8000"
CHITAI_API_DEBUG=false
CHITAI_POSTGRES_HOST=db
CHITAI_POSTGRES_DB=chitai
CHITAI_POSTGRES_USER=chitai_user
CHITAI_POSTGRES_PASSWORD=chitai_password
CHITAI_POSTGRES_PORT=5432
CHITAI_POSTGRES_ECHO=false