Dependencies
Before setting up the plugin, ensure that you have the following dependencies installed and configured:- PostgreSQL Database: You will need a PostgreSQL database to store data related to document templates and documents.
- MongoDB Database: MongoDB is required for the HTML templates feature of the plugin.
- Kafka: Establish a connection to the Kafka instance used by the FLOWX.AI engine.
- Redis: Set up a Redis instance for caching purposes.
- S3-Compatible File Storage Solution: Deploy an S3-compatible file storage solution to store document files.
Configuration
The plugin comes with pre-filled configuration properties, but you need to set up a few custom environment variables to tailor it to your specific setup. Here are the key configuration steps:Redis server
The plugin can utilize the Redis component already deployed for the FLOWX.AI engine. Make sure it is configured properly.Authorization configuration
To connect to the identity management platform, set the following environment variables:Document processing configuration
Set the
FLOWX_HTML_TEMPLATES_PDFFONTPATHS config to select the font used for generating documents based on PDF templates.If you want to use specific fonts in your PDF templates, override the
FLOWX_HTML_TEMPLATES_PDFFONTPATHS config. By default, Calibri and DejaVuSans are available fonts.FLOWX_CONVERT_DPI: Sets the DPI (dots per inch) for PDF to JPEG conversion. Higher values result in higher resolution images. (Default value: 150).Database configuration
SQL database (PostgreSQL)
The Documents Plugin uses a PostgreSQL database for relational data storage.Primary MongoDB configuration
Runtime MongoDB configuration
Redis configuration
Set the following values with the corresponding Redis-related values:Multipart upload configuration
Basic Kafka configuration
Topic naming configuration
Thread configuration
Document topics
Generate HTML documents
Document persistence
Document splitting
Document URL retrieval
OCR processing
File operation topics
File deletion
File update
File conversion
File persistence
File combination
Audit
General storage configuration
APPLICATION_FILESTORAGE_DELETIONSTRATEGY:disabled: This will disable entirely the deletion of temporary files from the temporary bucket, and the responsibility to delete and clean up the bucket will move in the ownership of the admins of the implementing project.deleteBypassingGovernanceRetention: This will still delete the temporary files and further more will add in the delete request the header:x-amz-bypass-governance-retention:true, to enable deletion of governed files, in case the s3 configured user for document-plugin, will have thes3:BypassGovernanceRetentionpermission.
S3-Compatible storage configuration
Make sure to follow the recommended bucket naming rules when choosing the bucket prefix name.

