Advanced Settings for Dedicated/Private Environments
Prevent Logs from Being Deleted in Server XML
By default logs in /var/pricefx/runtime/server/logs/archive are deleted after one month (partition logs after one day). It is possible to change the retention period using this setting:
<logRetention> <FILE_AUDIT>2</FILE_AUDIT> </logRetention>
Entries (here FILE_AUDIT) need to be the same as the appender names as defined in logback.xml.Â
The value is a new retention in days (essentially overwriting the "maxHistory" logback.xml value).
It only works for RollingFileAppender with TimeBasedRollingPolicy.Â
Attachment Upload Safety Controls
It is possible to employ optional safety measures for uploadable content (attachments):
Specify which file types can be uploaded (Confirm this with client as well as MIME type https://www.lifewire.com/mime-types-by-content-type-3469108):
<allowedContentTypes> text/plain image/jpeg image/png application/pdf application/zip application/vnd.ms-outlook </allowedContentTypes>
Upload Size Limits
Define upload limits for attachments in the cluster config.Â
<maxUploadThroughputPerUser>0</maxUploadThroughputPerUser> <!-- 0 means this is disabled --> <!-- The maximum size in bytes of a single binary --> <!-- a number less than 1 means no limit (defaults to 0) --> <maxBinarySize>5242880</maxBinarySize> <!-- 5242880B == 5 MB -->
Define upload size limits for Publishing Templates:
<maxPublishingTemplateFileSize>10485760</maxPublishingTemplateFileSize> <!-- 10 MB, default limit -->
For Pricefx, some modifications need to be made to Configuration/Feature Flags:
*The value stands for allowed number of MB per attachment. The default is 5MB.
Found an issue in documentation? Write to us.
Â