matrix-paperless-ingest/.env.example
Jeena f49ea1dbc5 ingest: Assign uploaded documents to a configurable Paperless owner
The post_document endpoint does not support setting ownership on upload,
so after a successful upload the document is PATCHed to set the owner.

Add optional PAPERLESS_OWNER_ID env var. When set, every newly uploaded
document is assigned to that Paperless user ID via PATCH /api/documents/{id}/.
2026-03-11 23:55:00 +00:00

26 lines
866 B
Text

MATRIX_HOMESERVER=https://jeena.net
MATRIX_USER=@bot:jeena.net
MATRIX_ACCESS_TOKEN=syt_...
MATRIX_DEVICE_ID=ABCDEFGH
MATRIX_ROOM_ID=!roomid:jeena.net
PAPERLESS_URL=https://paperless.jeena.net
PAPERLESS_TOKEN=your_paperless_api_token
PAPERLESS_INBOX_TAG_ID=1
# Optional: assign uploaded documents to this Paperless user ID
# PAPERLESS_OWNER_ID=7
# Optional: path to the SQLite state database (default: state.db next to the script)
DB_PATH=state.db
# Optional: Uptime Kuma push monitor URL for heartbeat monitoring
# Create a Push monitor in Uptime Kuma and paste the URL here.
# UPTIME_KUMA_PUSH_URL=https://uptime.example.com/api/push/xxxx?status=up&msg=OK&ping=
# Optional: email alerts on errors
# SMTP_HOST=mail.jeena.net
# SMTP_PORT=465
# SMTP_USER=user@jeena.net
# SMTP_PASSWORD=yourpassword
# ALERT_FROM=paperless-ingest@jeena.net
# ALERT_TO=you@jeena.net