Skip to main content

Environment variables

API

In addition to the configuration file (see the configuration documentation), you can set the following environment variables:

VariableTypeDefaultDescription
CONFIG_FILEstr"config.yml"Path to the configuration file.
GUNICORN_CMD_ARGSstr""Additional gunicorn command arguments (ex. --log-config app/log.conf).

Playground

For adapt the playground docker image for your deployment, you can build it with the following arguments. For more information, consult the reflex self-hosting documentation.

ArgumentTypeDefaultDescription
CONFIG_FILEstr"config.example.yml"Path to your configuration file.
REFLEX_BACKEND_URLstr"http://localhost:8500"URL of the backend API.
REFLEX_FRONTEND_URLstr"http://localhost:8501"URL of the frontend application.
REFLEX_FRONTEND_PATHstr""Path of the frontend application.
FAVICONstr"./playground/assets/favicon.ico"Path to your favicon file.

Example:

 docker build --build-arg \
CONFIG_FILE=config.yml \
FAVICON=./playground/assets/favicon.ico \
--file playground/Dockerfile --tag playground:latest .