Logic

Logic is responsible for generation of URI and applying limits. It groups all configuration settings related to allocation of slots, etc.

Available properties:

local-only
Allow only users with accounts on the local XMPP server to use this component for slot allocation. (default: true)
max-file-size
Set maximum size of a single allocated slot (maximum file size) in bytes. (default: 5000)
port
Specifies the port which should be used in generating the upload and download URI. If it is not set, then secured (HTTPS) server port will be used if available, and plain HTTP in other case. (default: not set)
protocol

Protocol which should be used. This is only used in conjunction with port. Possible values are:

  • http
  • https
serverName
Server name to use as domain part in generated URI. (default: server hostname)
upload-uri-format
Template used in generation of URI for file upload. (default: {proto}://{serverName}:{port}/upload/{userJid}/{slotId}/{filename})
download-uri-format
Template used in generation of URI for file download. (default: {proto}://{serverName}:{port}/upload/{slotId}/{filename})