Adding PDF Render to LogScale Configuration
Once the PDF Render Service has been deployed, the LogScale
service must be configured to point to the service using the
DEFAULT_PDF_RENDER_SERVICE_URL
configuration variable. This will need to be added to the configuration.
For more information, see Basic Configuration.
If you are using a single PDF Render node, set the URL to match the hostname and port of the deployed service:
DEFAULT_PDF_RENDER_SERVICE_URL="https://pdfrender.local:5123"If using multiple PDF Render nodes and a load balancer, use the name of the load balancer:
DEFAULT_PDF_RENDER_SERVICE_URL="https://pdfrenderlb.local:5123"In addition, the following other environment variables should be set:
The
ENABLE_SCHEDULED_REPORTvariable must be set totrue:iniENABLE_SCHEDULED_REPORT=trueThis enables the scheduled report functionality.
Set the
PUBLIC_URLto the URL of the LogScale deployment. This is shared with the PDF auxiliary node so that data can sent back to the cluster:iniPUBLIC_URL=https://logscale.localIf you do not wish to use the public URL for render service callbacks, then you can configure the
PDF_RENDER_SERVICE_CALLBACK_BASE_URLvariable. This ensures that callbacks are confined to within your cluster.Configure an email service, see Email Configuration for more information. An SMTP configuration might look like the following example:
iniSMTP_HOST=localhost SMTP_PORT=25 SMTP_SENDER_ADDRESS=noreply@example.com
A full example configuration:
DEFAULT_PDF_RENDER_SERVICE_URL="https://pdfrender.local:5123"
ENABLE_SCHEDULED_REPORT=true
PUBLIC_URL=https://logscale.local
SMTP_HOST=localhost
SMTP_PORT=25
SMTP_SENDER_ADDRESS=noreply@example.comThis configuration value must be set on each node within the cluster.
For users to be able to create scheduled PDF reports, they should have
the Change Scheduled
Reports permission.