# Calibre-Web-Automated tunables.
#
# Copy to .env on the host. The directory paths MUST exist and be
# writable by PUID:PGID before the first container start.

# Image pin
CWA_VERSION=latest

# Port on the host (and inside the container — CWA_PORT_OVERRIDE sets both).
CWA_PORT=8083

# UID/GID owning the mounted files. 2000:2000 matches what the old
# calibre + calibre-web stacks used on esh-docker-vm.
PUID=2000
PGID=2000

TZ=America/Los_Angeles

# NETWORK_SHARE_MODE disables SQLite WAL. REQUIRED when /calibre-library
# or /config is on NFS / SMB. Leave this on unless you move everything
# to local disk.
NETWORK_SHARE_MODE=true

# Optional: enables the Hardcover metadata provider. Sign up at
# hardcover.app and issue a token. Leave empty if unused.
HARDCOVER_TOKEN=

# Host directories — use the same library as the old stacks to keep the
# book catalogue. Migrate the old calibre-web config in place.
#
# Example values for esh-docker-vm:
#   CWA_CONFIG_DIR=/opt/docker/conf/calibre-web-automated
#   CWA_INGEST_DIR=/mnt/books/calibre/ingest
#   CWA_LIBRARY_DIR=/mnt/books/calibre/calibre_library
#
# ⚠  The ingest directory is a drop zone — files placed there are DELETED
#    after CWA processes them into the library. Pick a dedicated folder.
CWA_CONFIG_DIR=
CWA_INGEST_DIR=
CWA_LIBRARY_DIR=
