Use this file to discover all available pages before exploring further.
VeloIQConfig is a Python dataclass accepted by create_veloiq_app(). Every field reads from an environment variable when not set explicitly, so you can configure the application entirely through a .env file following 12-factor app conventions. Override individual fields in code when you need app-specific values that should not come from the environment.
FastAPI application title shown in /docs and the admin panel.
modules_dir
VELOIQ_MODULES_DIR
"app/modules"
Path to the modules directory, relative to the working directory. The framework discovers models.py, api.py, custom_api.py, and admin/admin_views.py inside each sub-folder.
static_dir
—
None
Directory to mount at /static. When None, no static mount is added.
Allowed CORS origins. In the environment variable, supply a comma-separated list. The default permits the standard Vite and Create React App dev ports.
The default cors_origins value in the code differs from the documentation shorthand ["*"] — it permits the standard local dev ports. In production, always set CORS_ORIGINS explicitly to your frontend domain(s).
Enable JWT Bearer token middleware. Set VELOIQ_AUTH_DISABLED=1 to disable auth enforcement (development only).
auth_secret
AUTH_SECRET
"veloiq-dev-secret-change-me"
Secret key used to sign and verify JWT tokens.
auth_algorithm
—
"HS256"
JWT signing algorithm.
auth_token_expire_minutes
AUTH_TOKEN_EXPIRE_MINUTES
480
Token validity in minutes (default 8 hours).
Never use the default auth_secret in production. Set AUTH_SECRET to a long, random string before deploying. Any deployment with the default secret is trivially forgeable.
List of RoleDef objects upserted to the database on startup. Defaults to the built-in Admin, Manager, and Viewer presets. Replace or extend this list to introduce application-specific roles.