Skip to content

Deployment and Maintenance / Configuration File

This article mainly introduces the configuration file of DataFlux Func and its adjustment methods.

1. Configuration File Location

Please refer to Deployment and Maintenance / Configuration and Data Files / DataFlux Func Configuration

2. Configuration Items

Do not modify the configuration items not listed below

DataFlux Func has a large number of configurable items.

The following only lists some commonly used ones that users can directly modify.

Do not modify other unlisted configuration items arbitrarily.

Restart required after modification

After modifying the configuration, the entire DataFlux Func must be restarted for the new configuration to take effect.

Do not start partial services alone to avoid conflicts due to different configurations among services.

Configuration Item Default Value Description
SECRET Randomly generated during deployment Private key. Used for login tokens, connector configuration encryption, etc.
Note: Once configured, do not modify it, otherwise the system will fail to operate normally.
LOG_LEVEL "WARNING" Log level, options:
 "ALL": All outputs
 "DEBUG": Outputs debug, info, warning, and error logs
 "INFO": Outputs info, warning, and error logs
 "WARNING": Outputs warning and error logs
 "ERROR": Only outputs error logs
 "NONE": No output
LOG_FILE_PATH "data/logs/dataflux-func.log" Log file output address
Must use an absolute path
TIMEZONE "Asia/Shanghai" Time zone
LOG_FILE_FORMAT "text" Log output format, options:
 "text": Plain text format
 "json": JSON format
LOG_CONSOLE_COLOR false Whether to colorize terminal logs
WEB_BASE_URL "" Web server access URL
i.e., the address users need to input in the browser's address bar when accessing
Leave blank to follow the browser
WEB_BIND "0.0.0.0" Web server bind IP, such as:
 "0.0.0.0": For public access
 "127.0.0.1": For local access only
WEB_PORT 8088 Web server bind port
MYSQL_HOST Automatically filled in during deployment MySQL host address
MYSQL_PORT 3306 MySQL port
MYSQL_USER "root" MySQL user
MYSQL_PASSWORD Randomly generated during deployment MySQL password
MYSQL_DATABASE "dataflux_func" MySQL database
REDIS_HOST Automatically filled in during deployment Redis host address
REDIS_PORT 6379 Redis port
REDIS_DATABASE 5 Redis database
REDIS_USER "" Redis user
REDIS_PASSWORD Randomly generated during deployment Redis password
REDIS_USE_TLS false Whether Redis enables TLS
REDIS_AUTH_TYPE "default" Redis authentication method, options:
 "default": Default (i.e., original Redis)
 "aliyun": Alibaba Cloud database authentication
BAD_SIGNIN_TEMP_LOCK_ACTIVE_COUNT 10 Number of times temporary locking of users is activated due to failed logins