Environment variables
API
In addition to the configuration file (see the configuration documentation), you can set the following environment variables:
| Variable | Type | Default | Description |
|---|---|---|---|
| CONFIG_FILE | str | "config.yml" | Path to the configuration file. |
| GUNICORN_CMD_ARGS | str | "" | 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.
| Argument | Type | Default | Description |
|---|---|---|---|
| CONFIG_FILE | str | "config.example.yml" | Path to your configuration file. |
| REFLEX_BACKEND_URL | str | "http://localhost:8500" | URL of the backend API. |
| REFLEX_FRONTEND_URL | str | "http://localhost:8501" | URL of the frontend application. |
| REFLEX_FRONTEND_PATH | str | "" | Path of the frontend application. |
| FAVICON | str | "./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 .