Skip to main content
Skip table of contents

File Engine Configurations

Follow these steps to configure File Engine:

  1. Stop EF_FileEngine service in Windows Services pane
  2. Navigate to <installation-dir>\hybrid-chat\core\file_engine\ 
  3. Open docker-variables.env file with any text editor
  4. Save the file after configuration changes and start EF_FileEngine service in Windows Services pane
  5. File Engine logs are generated at /EFLogs/chat-solution/file-engine/ directory

Configuration

Following table explains configuration parameters:


Configuration VariableDefault ValueExpected ValueLimitations

Description

1MINIOPORT9000Number
Minio hosting port
2ACCESSKEYadminString
Minio access key
3SECRETKEYadmiN123!String
Minio Secret key
4ENDPOINTlocalhostString
Minio host address
5USESSLtrueBoolean true / false 
Host File Engine over HTTPS when true 
6USESSL_MINIOfalseBoolean true / false 
Connect Minio over SSL when true 
7PORT8495Number
Port where File Engine is hosted
8CERTIFICATE_AUTHORITYhttps/file-engine.ca-bundleString
File Engine certificate authority path
9BUCKETNAMEdefaultString
Minio bucket name, File Engine creates this bucket on first startup
10PRIVATEKEYhttps/localhost.keyString
File Engine server certificate's private key path
11CERTIFICATEhttps/localhost.certString
File Engine server certificate path
12PASSPHRASEexpertflowString
File Engine server certificate passphrase
13MAXFILESIZE5Number
Allowed max file size in Megabytes. Default is 5MB.
14ALLOWEDFILETYPESpng,jpeg,jpg,pdf,ppt,doc,docx,xls,xlsx,txtString
Allowed file extensions, to allow more extensions, add there extensions separated by comma as default value illustrates
15CONTENTDISPOSITIONinlineString
Content Disposition for file downloading from File Engine. See more information about Content Disposition.
16BLOCK_UNKNOWN_FILESfalseboolean


17USE_FORWARD_PROXYfalse


18USE_SECURED_FORWARD_PROXYfalse


19FORWARD_PROXY_HOST0.0.0.0


20FORWARD_PROXY_PORT8080


21FORWARD_PROXY_USERxxxx


22FORWARD_PROXY_PASSWORDxxxx


23BYPASS_STRICT_TYPE_CHECKfalse

If you want to allow for any script file to be uploaded to server, add that extension in ALLOWEDFILETYPES and set BYPASS_STRICT_TYPE_CHECK=true, other strict type checking will not let the script/code file pass through even if it is allowed in ALLOWEDFILETYPES
24FILE_NAME
String

# 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 Name in Minio S3 bucket: <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 file name
 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>

25




JavaScript errors detected

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

If this problem persists, please contact our support.