Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
On dedicated/private environments the following settings can be requested
:

Table of Contents
maxLevel1

...

from Pricefx Support. 

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
    languagexml
    <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:

    Image Added
    *The value stands for allowed number of MB per minute per user. If set to 0, upload is disabledattachment. The default is 5MB.