Skip to main content
Skip table of contents

File Engine Environment Variables

Following are the environment variables used in the File-Engine service.

Config Parameter

Expected Value

Notes

MINIOPORT

9000

Port where minio server is listening, default is 9000

ACCESSKEY

admin

Access key of Minio Server

SECRETKEY

admiN123!

Secret Key of Minio Server

ENDPOINT

minio

Address of minio service

USESSL

true/false

Host api via https/http. Set true to host via https. Default is true

USESSL_MINIOtrue/falseConnect to Minio Server via SSL. Default is true
CERTIFICATE_AUTHORITYhttps/file-engine.ca-bundleCertificate authority bundle path
BUCKETNAMEdefaultThe name of Minio bucket to create on first connection. This bucket is created by File Engine
PRIVATEKEYhttps/localhost.keyPrivate key file to host File Engine via SSL. Used when USESSL is true
CERTIFICATEhttps/localhost.certPrivate certificate file to host File Engine via SSL. Used when USESSL is true
PASSPHRASEexpertflowPassphrase of certificate
MAXFILESIZE5Allowed max file size in Megabytes. Default is 5MB.
ALLOWEDFILETYPESpng,jpeg,jpg,pdf,ppt,doc,docx,xls,xlsx,txtAllowed files types. Add desired extensions via separating values by comma.
CONTENTDISPOSITIONinlineIn a regular HTTP response, the Content-Disposition response header is a header indicating if the content is expected to be displayed inline in the browser, that is, as a Web page or as part of a Web page, or as an attachment, that is downloaded and saved locally. For further information, check MDN.
USE_FORWARD_PROXYfalse
USE_SECURED_FORWARD_PROXYfalse
FORWARD_PROXY_HOST0.0.0.0
FORWARD_PROXY_PORT8080
FORWARD_PROXY_USERxxxx
FORWARD_PROXY_PASSWORDxxxx
FILE_NAME

FILE_NAME environment variable can be used to configure custom filename schemes. If FILE_NAME environment variable is not present or empty, default scheme will be used.
Default Scheme:
File is stored in Minio S3 bucket using this naming scheme: <conversation-id>_<original-file-name>.<extension>
Where:

  • <conversation-id>     : conversation id for which file is being uploaded
  • <original-file-name> : original file name while uploading
  • <extension>               : extension of file

FILE_NAME can be configured using the following four variables:

  1. {CONVERSATION_ID}   : conversation id for which file is being uploaded
  2. {UUID}                            : use it if you want to use GUID/UUID in filename
  3. {ORIGINAL_NAME}        : original file name while uploading
  4. {EXT}                              : extension of file

Examples:

  • FILE_NAME={CONVERSATION_ID}_{UUID}_{ORIGINAL_NAME}.{EXT} will produce a file name of <conversation-id>_<a-random-uuid>_<actual-file-name>.<extension>
  • FILE_NAME={UUID} will produce a file name of <a-random-uuid>. It will not have any extension but note that its mime type will remain original.

The above mentioned examples are showing just two possibilities, you can add them in any format. Spaces in file name will be replaced to -, for example: FILE_NAME={UUID}    {ORIGINAL_NAME}  .{EXT} will yield <a-random-uuid>---<original-file-name>---.<extension>

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.