PAPERLESS_REDIS=redis://localhost:6379
PAPERLESS_DBENGINE=postgresql
PAPERLESS_DBHOST=localhost
PAPERLESS_DBPORT=5432
PAPERLESS_DBNAME={{ paperless_db_name }}
PAPERLESS_DBUSER={{ paperless_db_user }}
PAPERLESS_DBPASS={{ paperless_db_password }}

PAPERLESS_CONSUMPTION_DIR={{ paperless_consumption_dir }}
PAPERLESS_DATA_DIR={{ paperless_data_dir }}
PAPERLESS_MEDIA_ROOT={{ paperless_media_root }}

PAPERLESS_SCRATCH_DIR={{ paperless_scratch_dir }}
PAPERLESS_SECRET_KEY={{ paperless_secret_key }}
PAPERLESS_BIND_ADDR={{ paperless_bind_addr }}
PAPERLESS_PORT={{ paperless_port }}

PAPERLESS_OCR_LANGUAGE={{ paperless_ocr_language }}
# Skip Ghostscript PDF/A archive creation for documents that already have embedded text.
# Prevents OOM on large digital PDFs (e.g. 390-page manuals) on memory-constrained VPS.
PAPERLESS_OCR_SKIP_ARCHIVE_FILE=with_text
PAPERLESS_TIME_ZONE={{ paperless_time_zone }}

PAPERLESS_ADMIN_USER={{ paperless_admin_user }}
PAPERLESS_ADMIN_PASSWORD={{ paperless_admin_password }}
PAPERLESS_ADMIN_MAIL={{ paperless_admin_mail | default(admin_user_email) }}

PAPERLESS_URL=https://{{ paperless_domain }}
