Repository navigation
Maltonoloco/paperless - #52
Merged
PhilippTheServer merged 2 commits intoAug 26, 2026
Merged
Conversation
PhilippTheServer
approved these changes
Aug 26, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Feature
Description
Adds a provider-neutral accounting document service backed by Paperless-ngx.
The service exposes an admin-only API for integrating document accounting workflows into the OpenTaberna admin frontend. Paperless-ngx handles document storage, OCR, full-text search, classification, previews, and asynchronous processing while its API token remains exclusively in the backend.
Included functionality:
The development environment now includes:
.env.exampleconfigurationMotivation
OpenTaberna needs a central accounting document archive that can be integrated into the admin frontend without implementing OCR, document indexing, preview generation, and classification from scratch.
Paperless-ngx provides these capabilities as a mature self-hosted service. The adapter boundary keeps the OpenTaberna API provider-neutral and prevents the admin frontend from directly handling Paperless credentials.
API Changes
New admin-only base path:
/v1/admin/accountingEndpoints:
GET /statusGET /documentsPOST /documentsPOST /documents/bulk-editGET /documents/{document_id}PATCH /documents/{document_id}DELETE /documents/{document_id}GET /documents/{document_id}/fileGET /tasksGET /resources/{resource}POST /resources/{resource}PATCH /resources/{resource}/{resource_id}DELETE /resources/{resource}/{resource_id}Supported resource types:
tagscorrespondentsdocument-typesstorage-pathscustom-fieldsDocument uploads return
202 Acceptedwith a Paperless task ID. Clients can poll/tasks?task_id=...until processing completes.Database Changes
Paperless uses its own PostgreSQL service and persistent volume. Its schema and migrations are managed internally by Paperless-ngx.
Configuration Changes
New API environment variables:
PAPERLESS_URL=http://localhost:8010PAPERLESS_TOKEN=PAPERLESS_TIMEOUT_SECONDS=30PAPERLESS_MAX_UPLOAD_BYTES=52428800New Paperless container variables:
PAPERLESS_ADMIN_USER=adminPAPERLESS_ADMIN_PASSWORD=adminPAPERLESS_DB_PASSWORD=paperlessPAPERLESS_SECRET_KEY=CHANGE_ME_IN_PRODUCTIONFor Docker Compose, the API receives the internal Paperless address:
http://opentaberna-paperless:8000The Paperless UI is available locally at:
http://localhost:8010Documentation
docs/)Added:
docs/accounting.mdThe documentation covers:
Testing
.envAdded unit coverage for:
Focused accounting and configuration verification:
40 passedFull-suite result with telemetry disabled:
838 passed, 27 skipped, 8 failedThe eight failures are existing live telemetry integration tests that require:
OTEL_ENABLED=trueThey are unrelated to the Paperless implementation. The collector and Prometheus were running, but the API and worker intentionally exported no metrics while telemetry was disabled.
Related Issues
Closes #
Checklist
.env.example