Appendix A: Configuration Parameter Reference
APP_CIPHER
: Database encryption cipher, options are AES-128-CBC or AES-256-CBC (default). Only change this if you are starting from a clean databaseAPP_DEBUG
: When your application is in debug mode, detailed error messages with stack traces will be shown on every error that occurs within your application. If disabled, a simple generic error page is shownAPP_ENV
: This may determine how various services behave in your applicationAPP_KEY
: This key is used by the application for encryption and should be set to a random, 32 character string, otherwise these encrypted strings will not be safe. Use ‘php artisan key:generate’ to generate a new key. Please do this before deploying an application!APP_LOCALE
: The application locale determines the default locale that will be used by the translation service provider. Currently only ‘en’ (English) is supportedAPP_LOG
: This setting controls the placement and rotation of the log file used by the applicationAPP_LOG_LEVEL
: The setting controls the amount and severity of the information logged by the application. This is hierarchical and goes in the following order: DEBUG -> INFO -> NOTICE -> WARNING -> ERROR -> CRITICAL -> ALERT -> EMERGENCY. If you set log level to WARNING then all WARNING, ERROR, CRITICAL, ALERT, and EMERGENCY will be logged. Setting log level to DEBUG will log everything. Default is WARNING [‘APP_NAME’]=“This value is used when the framework needs to place the application’s name in a notification or any other location as required by the application or its packagesAPP_TIMEZONE
: Here you may specify the default timezone for your application, which will be used by the PHP date and date-time functionsAPP_URL
: This URL is used by the console to properly generate URLs when using the Artisan command line tool. You should set this to the root of your application so that it is used when running Artisan tasksDF_LANDING_PAGE
: This is the starting point (page, application, etc.) when a browser points to the server root URL
Database settings
DB_CONNECTION
: This corresponds to the driver that will be supporting connections to the system database serverDB_HOST
: The hostname or IP address of the system database serverDB_PORT
: The connection port for the host given, or blank if the provider default is usedDB_DATABASE
: The database name to connect to and where to place the system tablesDB_USERNAME
: Credentials for the system database connection if requiredDB_PASSWORD
: Credentials for the system database connection if requiredDB_CHARSET
: The character set override if required. Defaults use utf8, except utf8mb4 for MySQL-based databases - may cause problems for pre-5.7.7 (MySQL) or pre-10.2.2 (MariaDB), if so, use utf8DB_COLLATION
: The character set collation override if required. Defaults use utf8_unicode_ci, except utf8mb4_unicode_ci for MySQL-based database - may cause problems for pre-5.7.7 (MySQL) or pre-10.2.2 (MariaDB), if so, use utf8_unicode_ciDB_MAX_RECORDS_RETURNED
: This is the default number of records to return at once for database queriesDF_SQLITE_STORAGE
: This is the default location to store SQLite3 database files
FreeTDS configuration (Linux and OS X only)
DF_FREETDS_DUMP
: Enabling and location of dump file, defaults to disabled or default freetds.conf settingDF_FREETDS_DUMPCONFIG
: Location of connection dump file, defaults to disabled
Cache
CACHE_DRIVER
: What type of driver or connection to use for cache storageCACHE_DEFAULT_TTL
: Default cache time-to-live, defaults to 300CACHE_PREFIX
: A prefix used for all cache written out from this installationCACHE_PATH
: The path to a folder where the system cache information will be storedCACHE_TABLE
: The database table name where cached information will be storedREDIS_CLIENT
: What type of php extension to use for Redis cache storageCACHE_HOST
: The hostname or IP address of the memcached or redis serverCACHE_PORT
: The connection port for the host given, or blank if the provider default is usedCACHE_USERNAME
: Credentials for the service if requiredCACHE_PASSWORD
: Credentials for the service if requiredCACHE_PERSISTENT_ID
: Memcached persistent ID settingCACHE_WEIGHT
: Memcached weight settingCACHE_DATABASE
: The desired Redis database number between 0 and 16 (or the limit set in your redis.conf file
Limits
LIMIT_CACHE_DRIVER
: What type of driver or connection to use for limit cache storageLIMIT_CACHE_PREFIX
: A prefix used for all cache written out from this installationLIMIT_CACHE_PATH
: Path to a folder where limit tracking information will be storedLIMIT_CACHE_TABLE
: The database table name where limit tracking information will be storedLIMIT_CACHE_HOST
: The hostname or IP address of the redis serverLIMIT_CACHE_PORT
: The connection port for the host given, or blank if the provider default is usedLIMIT_CACHE_USERNAME
: Credentials for the service if requiredLIMIT_CACHE_PASSWORD
: Credentials for the service if requiredLIMIT_CACHE_PERSISTENT_ID
: Memcached persistent ID settingLIMIT_CACHE_WEIGHT
: Memcached weight settingLIMIT_CACHE_DATABASE
: The desired Redis database number between 0 and 16 (or the limit set in your redis.conf file
Queuing
QUEUE_DRIVER
: What type of driver or connection to use for queuing jobs on the serverQUEUE_NAME
: Name of the queue to use, defaults to ‘default’QUEUE_RETRY_AFTER
: Number of seconds after to retry a failed job, defaults to 90QUEUE_TABLE
: The database table used to store the queued jobsQUEUE_HOST
: The hostname or IP address of the beanstalkd or redis serverQUEUE_PORT
: The connection port for the host given, or blank if the provider default is usedQUEUE_DATABASE
: The desired Redis database number between 0 and 16 (or the limit set in your redis.conf fileQUEUE_PASSWORD
: Credentials for the service if requiredSQS_KEY
: AWS credentialsSQS_SECRET
: AWS credentialsSQS_REGION
: AWS storage regionSQS_PREFIX
: AWS SQS specific prefix for queued jobs
Event Broadcasting
BROADCAST_DRIVER
: What type of driver or connection to use for broadcasting events from the serverPUSHER_APP_ID
:PUSHER_APP_KEY
:PUSHER_APP_SECRET
:BROADCAST_HOST
: The hostname or IP address of the redis serverBROADCAST_PORT
: The connection port for the host given, or blank if the provider default is usedBROADCAST_DATABASE
: The desired Redis database number between 0 and 16 (or the limit set in your redis.conf fileBROADCAST_PASSWORD
: Credentials for the service if required
User Management
DF_LOGIN_ATTRIBUTE
: By default DreamFactory uses an email address for user authentication. You can change this to use username instead by setting this to ‘username’DF_CONFIRM_CODE_LENGTH
: New user confirmation code length. Max/Default is 32. Minimum is 5DF_CONFIRM_CODE_TTL
: Confirmation code expiration. Default is 1440 minutes (24 hours)DF_ALLOW_FOREVER_SESSIONS
: falseJWT_SECRET
: If a separate encryption salt is required for JSON Web Tokens, place it here. Defaults to the APP_KEY settingDF_JWT_TTL
: The time-to-live for JSON Web Tokens, i.e. how long each token will remain valid to useDF_JWT_REFRESH_TTL
: The time allowed in which a JSON Web Token can be refreshed from its originationDF_CONFIRM_RESET_URL
: Application path to where password resets are to be handledDF_CONFIRM_INVITE_URL
: Application path to where invited users are to be handledDF_CONFIRM_REGISTER_URL
: Application path to where user registrations are to be handled
Server-side Scripting
DF_SCRIPTING_DISABLE
: To disable all server-side scripting set this to ‘all’, or comma-delimited list of v8js, nodejs, python, and/or php to disable individuallyDF_NODEJS_PATH
: The system will try to detect the executable path, but in some environments it is best to set the path to the installed Node.js executableDF_PYTHON_PATH
: The system will try to detect the executable path, but in some environments it is best to set the path to the installed Python executable
API
DF_API_ROUTE_PREFIX
: By default, API calls take the form of http://<server_name>/<api_route_prefix>/v<version_number>DF_STATUS_ROUTE_PREFIX
: By default, API calls take the form of http://<server_name>/[<status_route_prefix>/]statusDF_STORAGE_ROUTE_PREFIX
: By default, API calls take the form of http://<server_name>/[<storage_route_prefix>/]<storage_service_name>/<file_path>DF_XML_ROOT
: XML root tag for HTTP responsesDF_ALWAYS_WRAP_RESOURCES
: Most API calls return a resource array or a single resource, if array, do we wrap it?DF_RESOURCE_WRAPPER
: Most API calls return a resource array or a single resource, if array, what do we wrap it with?DF_CONTENT_TYPE
: Default content-type of response when accepts header is missing or empty
Storage
DF_FILE_CHUNK_SIZE
: File chunk size for downloadable files in bytes. Default is 10MB
Other settings
DF_PACKAGE_PATH
: Path to a package file, folder, or URL to import during instance launchDF_LOOKUP_MODIFIERS
: Lookup management, comma-delimited list of allowed lookup modifying functions like urlencode, trim, etc. Note: Setting this will disable a large list of modifiers already internally configuredDF_INSTALL
: This designates from where or how this instance of the application was installed, i.e. Bitnami, GitHub, DockerHub, etc.
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.
Last modified April 23, 2021: Appendix A added, navigation weights changed (0b48735)