Docs

Blog

Gallery

Resources

Learn

Components

API Reference

Onboarding

Api-reference

/

Config

reflex.config.Config

A Reflex config.

FieldDescription
FieldDescription
app_name The name of the app.
loglevel The log level to use.
frontend_port The port to run the frontend on.
frontend_path The path to run the frontend on.
backend_port The port to run the backend on.
api_url The backend url the frontend will connect to.
deploy_url The url the frontend will be hosted on.
backend_host The url the backend will be hosted on.
db_url The database url.
redis_url The redis url.
telemetry_enabled Telemetry opt-in.
bun_path The bun path
cors_allowed_origins List of origins that are allowed to connect to the backend API.
tailwind Tailwind config.
timeout Timeout when launching the gunicorn server. TODO(rename this to backend_timeout?)
next_compression Whether to enable or disable nextJS gzip compression.
event_namespace The event namespace for ws connection
frontend_packages Additional frontend packages to install.
cp_backend_url The hosting service backend URL.
cp_web_url The hosting service frontend URL.
gunicorn_worker_class The worker class used in production mode
SignatureDescription
Config()Pydantic config for the config.
__init__(self, *args, **kwargs)Initialize the config values.
check_deprecated_values(**kwargs)Check for deprecated config values.
update_from_env(self) -> 'dict[str, Any]'Update the config from environment variables.
get_event_namespace(self) -> 'str | None'Get the websocket event namespace.
_replace_defaults(self, **kwargs)Replace formatted defaults when the caller provides updates.
_set_persistent(self, **kwargs)Set values in this config and in the environment so they persist into subprocess.

Did you find this useful?

HomeGalleryChangelogIntroductionHosting