Table of Contents | ||
---|---|---|
|
...
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:
Code Block |
---|
<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
...
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):
Code Block <allowedContentTypes> text/plain image/jpeg image/png application/pdf application/zip application/vnd.ms-outlook </allowedContentTypes>
Upload Size Limits
Define upload limits per userfor attachments in the cluster config.
Code Block language xml <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:
Code Block <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 minute per user. If set to 0, upload is disabledattachment. The default is 5MB.