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 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 clinet 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>
Attachment Upload Size Limit
Define upload limits per user on cluster config.
<maxUploadThroughputPerUser>0</maxUploadThroughputPerUser>
The value stands for allowed number of MB per minute per user. If set to 0, upload is disabled.
For Unity some modifications need to be made to Configuration/Feature Flags
uploadMaxFileSize 5