forked from 0xWheatyz/SPARC
Document patent PDF storage volume requirement and add S3/MinIO option #808
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Background
PDFs are saved to a local
patents/directory. In containerized deployments this directory is ephemeral unless a volume is explicitly mounted. There is no documentation about this requirement.What to do
docker-compose.ymlcomments explaining thatpatents/must be mapped to a persistent volumePATENT_STORAGE_BACKENDenv var supportinglocal(default) ands3modes. Whens3is selected, useboto3to upload/download PDFs from a configured bucketS3_BUCKET,S3_ENDPOINT_URL,AWS_ACCESS_KEY_ID,AWS_SECRET_ACCESS_KEYto.env.example(for MinIO compatibility)Acceptance criteria
docker-compose.ymlincludes a commented-out volume mount example forpatents/References
Roadmap item: P2 Backend -- Patent PDF storage